<div dir="ltr">Please ignore the callback sequence issue. It was my logging problem.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 5, 2019 at 3:29 PM Kun Zhao <<a href="mailto:kunzhao77@gmail.com">kunzhao77@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">The COMPLETED_CLIENT_HTTP is called before the last RECEIVE_CLIENT_HTTP. Here is the callback sequence.<div><br></div><div>[2019/04/05 15:18:16:7170] INFO: lws_client_interpret_server_handshake: client connection up</div><div>******** LWS_CALLBACK_RECEIVE_CLIENT_HTTP</div><div>******** LWS_CALLBACK_RECEIVE_CLIENT_HTTP</div><div>******** LWS_CALLBACK_RECEIVE_CLIENT_HTTP</div><div>******** LWS_CALLBACK_RECEIVE_CLIENT_HTTP</div><div>******** LWS_CALLBACK_RECEIVE_CLIENT_HTTP</div><div>******** LWS_CALLBACK_RECEIVE_CLIENT_HTTP</div><div>******** LWS_CALLBACK_RECEIVE_CLIENT_HTTP</div><div>******** LWS_CALLBACK_RECEIVE_CLIENT_HTTP</div><div>******** LWS_CALLBACK_RECEIVE_CLIENT_HTTP</div><div>******** LWS_CALLBACK_COMPLETED_CLIENT_HTTP</div><div>******** LWS_CALLBACK_RECEIVE_CLIENT_HTTP</div><div>[2019/04/05 15:18:16:7187] INFO: lws_http_transaction_completed_client: wsi: 0x7fd6c8000b60, wsi_eff: 0x7fd6c8000b60 (http)</div><div>[2019/04/05 15:18:16:7187] INFO: lws_http_transaction_completed_client: nothing pipelined waiting</div><div>******** LWS_CALLBACK_CLOSED_CLIENT_HTTP</div><div>[2019/04/05 15:18:22:0037] INFO: wsi 0x7fd6c8000b60: TIMEDOUT WAITING on 27 (did hdr 0, ah 0x7fd6c8000e60, wl 0, pfd events 1) 1554495502 vs 5</div><div>[2019/04/05 15:18:22:0037] INFO: __lws_close_free_wsi: 0x7fd6c8000b60: caller: timeout</div><div> <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 5, 2019 at 2:28 PM Kun Zhao <<a href="mailto:kunzhao77@gmail.com" target="_blank">kunzhao77@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Andy,<div><br></div><div>I updated libwebsockets from 3.0 to master branch today. I noticed a behavior change in HTTP client. HTTP client used to receive data in LWS_CALLBACK_RECEIVE_CLIENT_HTTP_READ callback. Now the LWS_CALLBACK_RECEIVE_CLIENT_HTTP_READ is never called (I guess for un-chunked data) and the data is provided in LWS_CALLBACK_RECEIVE_CLIENT_HTTP. </div><div><br></div><div>Just want to check with you if this is the correct behavior because of all the minimal examples and test client are still read data in LWS_CALLBACK_RECEIVE_CLIENT_HTTP_READ  callback.</div><div><br></div><div>Thank,</div><div>Kun</div></div>
</blockquote></div>
</blockquote></div>