<div dir="ltr"><div>I added a printout of the return value from lws_ssl_capable_read() in lws_http_client_read, and it reports what looks like a sane value.<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 8, 2017 at 11:38 AM, Joel Winarske <span dir="ltr"><<a href="mailto:joel.winarske@gmail.com" target="_blank">joel.winarske@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>In the below scenario I was figuring I should see nine different LWS_CALLBACK_RECEIVE_CLIENT_<wbr>HTTP callbacks, as well as valid read lengths.  Am I missing something?</div><div><br></div><div>$ ./libwebsockets-test-client <a href="http://inrix.com" target="_blank">http://inrix.com</a></div><div>...</div><div>[2017/02/08 08:58:26:9465] NOTICE: http: connecting</div><div>[2017/02/08 08:58:26:9575] NOTICE: dumb: LWS_CALLBACK_CLIENT_APPEND_<wbr>HANDSHAKE_HEADER</div><div>[2017/02/08 08:58:26:9662] NOTICE: dumb: LWS_CALLBACK_ESTABLISHED_<wbr>CLIENT_HTTP 200</div><div>[2017/02/08 08:58:26:9663] NOTICE: lws_client_interpret_server_<wbr>handshake: client connection up</div><div>[2017/02/08 08:58:26:9663] NOTICE: dumb: LWS_CALLBACK_RECEIVE_CLIENT_<wbr>HTTP</div><div>[2017/02/08 08:58:26:9663] NOTICE: lws_http_client_read len=0</div><div>[2017/02/08 08:58:26:9681] NOTICE: dumb: LWS_CALLBACK_RECEIVE_CLIENT_<wbr>HTTP</div><div>[2017/02/08 08:58:26:9682] NOTICE: lws_http_client_read len=0</div><div>[2017/02/08 08:58:26:9701] NOTICE: dumb: LWS_CALLBACK_RECEIVE_CLIENT_<wbr>HTTP</div><div>[2017/02/08 08:58:26:9701] NOTICE: lws_http_client_read len=0</div><div>[2017/02/08 08:58:26:9720] NOTICE: dumb: LWS_CALLBACK_RECEIVE_CLIENT_<wbr>HTTP</div><div>[2017/02/08 08:58:26:9721] NOTICE: lws_http_client_read len=0</div><div>[2017/02/08 08:58:26:9738] NOTICE: dumb: LWS_CALLBACK_RECEIVE_CLIENT_<wbr>HTTP</div><div>[2017/02/08 08:58:26:9739] NOTICE: dumb: LWS_CALLBACK_COMPLETED_CLIENT_<wbr>HTTP</div><div>[2017/02/08 08:58:26:9739] NOTICE: lws_http_client_read len=3</div><div><br></div><div><br></div><div>[2017/02/08 08:58:26:9739] ERR: Exiting</div><div>[2017/02/08 08:58:26:9739] NOTICE: lws_context_destroy: ctx 0x1d01990</div><div>[2017/02/08 08:58:26:9739] NOTICE: lws_context_destroy2: ctx 0x1d01990</div><div><br></div><div><br></div><div>In wireshark for the above I saw eight TCP packets with the following lengths - 4104, 2736, 2736, 2736, 5472, 1368, 4104, 1851.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div><br></div><div>Joel</div><div><br></div></font></span></div>
</blockquote></div><br></div>