cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Curl hangs if protocol does not match port

From: codemastr <codemstr_at_ptd.net>
Date: Fri, 27 Aug 2004 12:31:02 -0400

> What such a server does when presented with such
> a handshaking sequence is probably implementation-defined; some servers
> might return an HTTP error code which SSL interprets as garbage and causes
> it to close the connection, while other servers might wait indefinitely
> for
> a valid HTTP request, causing an apparent hang.
>
> In any case, you can't depend on any particular behaviour when you're
> trying
> to do something nonsensical like this.

I would suspect that regardless of what the server does, SSL_connect should
return an error code which should cause the connection to be terminated.

Dominick Meglio
Received on 2004-08-27