[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
> This is related to blocking sockets as of commit 6c58228
> 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.
> Reply to this email directly or view it on GitHub
More information about the Libwebsockets