[Libwebsockets] client chunk/unchunk

Andy Green andy at warmcat.com
Mon Mar 6 05:43:03 CET 2017



On 03/05/2017 11:55 PM, Joel Winarske wrote:
> Hi Andy,
>
> I'm seeing a problem with the client.  lws_http_client_read() returns 
> a value in both RECEIVE_CLIENT_HTTP callbacks.  I would expect it 
> would only return a value for chunked given the size.  See anything 
> suspicious here?
>
> [2017/03/05 07:51:40:9226] NOTICE: lws_ssl_client_connect2: 
> SSL_connect says 1
> [2017/03/05 07:51:41:4546] INFO: lws_ensure_user_space: 031651B0 
> protocol 02E25628
> [2017/03/05 07:51:41:4556] INFO: lws_ensure_user_space: 031651B0 
> protocol pss 11308, user_space=03173C10
> [2017/03/05 07:51:41:4566] NOTICE: 
> lws_client_interpret_server_handshake: incoming content length 9506
>     connection: keep-alive
>     http/1.1  200 OK
>     pragma: no-cache
>     cache-control: no-cache
>     content-length: 9506
>     content-type: application/json; charset=utf-8
>     date: Sun, 05 Mar 2017 15:51:38 GMT
>     expires: -1
>     server: Microsoft-IIS/8.5
> [2017/03/05 07:51:41:4626] INFO: lws_header_table_detach: wsi 
> 031651B0: ah 00E53258 (tsi=0, count = 2)
> [2017/03/05 07:51:41:4636] INFO: lws_header_table_detach: wsi 
> 031651B0: ah 00E53258 (tsi=0, count = 1)
> [2017/03/05 07:51:41:4636] NOTICE: 
> lws_client_interpret_server_handshake: client connection up
> [2017/03/05 07:51:41:4636] INFO: ssl buffered read
> [2017/03/05 07:51:41:4646] INFO: http: (031651B0) 
> LWS_CALLBACK_RECEIVE_CLIENT_HTTP_READ (chunked): 4768
> [2017/03/05 07:51:41:4646] INFO: http: (031651B0) 
> LWS_CALLBACK_RECEIVE_CLIENT_HTTP (unchunked) 4768

How about only taking data from LWS_CALLBACK_RECEIVE_CLIENT_HTTP_READ, 
for both chunked and unchunked?

-Andy

> [2017/03/05 07:51:41:4656] INFO: lws_close_free_wsi: shutting down SSL 
> connection: 031651B0 (ssl 0317AD78, sock 560, state 6)
> [2017/03/05 07:51:41:4666] INFO: lws_close_free_wsi: real 
> just_kill_connection: 031651B0 (sockfd 560)
> [2017/03/05 07:51:41:4676] INFO: remove_wsi_socket_from_fds: removing 
> same prot wsi 031651B0
> [2017/03/05 07:51:41:4676] INFO: ah det due to close
> [2017/03/05 07:51:41:4686] INFO: lws_header_table_detach: wsi 
> 031651B0: ah 00000000 (tsi=0, count = 1)
> [2017/03/05 07:51:41:4686] INFO: lws_header_table_detach: wsi 
> 031651B0: ah 00000000 (tsi=0, count = 1)
>
>
>
> _______________________________________________
> Libwebsockets mailing list
> Libwebsockets at ml.libwebsockets.org
> https://libwebsockets.org/mailman/listinfo/libwebsockets




More information about the Libwebsockets mailing list