aboutsummaryrefslogtreecommitdiff
path: root/lib/ssh.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-07-03 06:56:03 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-07-03 06:56:03 +0000
commit7c648782bc7c97be81c619acd8598c38b59c5832 (patch)
tree19083e2f56b425701f0e44abcfe69e60e608aa40 /lib/ssh.c
parentee64d14733266ce533eeb3cbc86bd80212527b81 (diff)
Introcuding a new timestamp for curl_easy_getinfo():
CURLINFO_APPCONNECT_TIME. This is set with the "application layer" handshake/connection is completed (typically SSL, TLS or SSH). By using this you can figure out the application layer's own connect time. You can extract the time stamp using curl's -w option and the new variable named 'time_appconnect'. This feature was sponsored by Lenny Rachitsky at NeuStar.
Diffstat (limited to 'lib/ssh.c')
-rw-r--r--lib/ssh.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ssh.c b/lib/ssh.c
index f54353c03..6f2392d6d 100644
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -715,6 +715,8 @@ static CURLcode ssh_statemach_act(struct connectdata *conn)
*/
infof(data, "Authentication complete\n");
+ Curl_pgrsTime(conn->data, TIMER_APPCONNECT); /* SSH is connected */
+
conn->sockfd = sock;
conn->writesockfd = CURL_SOCKET_BAD;