curl-users
curl pending when connect to unstable ssh server
From: mempool <mempool_at_qq.com>
Date: Sun, 1 May 2011 22:29:09 +0800
Date: Sun, 1 May 2011 22:29:09 +0800
sometimes the scanner connect to check if ssh server running on a port,used
curl --connect-timeout 10 -m 50 sftp://localhost:80/
if the port not response when received the request packet, the curl client will be pending whitout timeout restrict
Solution is patched lib/ssh.c
add
libssh2_session_set_blocking(sshc->ssh_session, 0);
before
rc = libssh2_session_startup(sshc->ssh_session, sock);
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-05-01