[Libwebsockets] [libwebsockets] SSL_connect on iOS with http proxy fails when SSL_connect can't connect immediately (with blocking sockets, branched from 6c58228) (#18)

"Andy Green (林安廸)" andy at warmcat.com
Thu Oct 24 16:29:49 CEST 2013


On 24/10/13 21:47, the mail apparently from shyswork included:
> SSL_connect on iOS with http proxy fails when SSL_connect can't connect
> immediately. The problem is that nonblocking BIO is used so in case
> SSL_connect() can't finish in one turn wsi->mode doesn't change from
> LWS_CONNMODE_WS_CLIENT_WAITING_PROXY_REPLY. So the next time we receive
> something on socket we fail on "HTTP/1.0 200" proxy connect check. I
> have made a quick fix. Please check here shyswork at b84971a
> <https://github.com/shyswork/libwebsockets/commit/b84971ac05916f9f3ded2e0a8e553caf0f7f599d>
>
> This is related to blocking sockets as of commit 6c58228
> <https://github.com/warmcat/libwebsockets/commit/6c58228577306c023b072b5c7c7a2b044a94f12a>.
> When I tried to use libwebsocket on iOS behind http proxy with
> nonblocking sockets I couldn't connect as well but I'm not sure if it is
> related to openssl or to the problem with libwebsockets and nonblocking
> sockets on iOS.

This patch was nicely done with understanding the state machine... 
thanks a lot.

http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/commit/?id=24f4eb648b9104b4483a8a67331f8cd741896eec

-Andy

>> Reply to this email directly or view it on GitHub
> <https://github.com/warmcat/libwebsockets/issues/18>.
>




More information about the Libwebsockets mailing list