[Libwebsockets] choked before able to send whole file

"Andy Green (林安廸)" andy at warmcat.com
Mon Dec 9 04:30:04 CET 2013


On 09/12/13 11:07, the mail apparently from "Andy Green (林安廸)" included:
> On 09/12/13 11:02, the mail apparently from John Harrison included:
>> Hello,
>>
>> I just downloaded libWebSockets and would like to use it with Samsung
>> Note II tablets to inspect and diagnose industrial ARM controllers.
>>
>> I managed to get the library and examples built on a computer with
>> Ubuntu 12.04.  The test server works great for any PC that has the
>> Chrome browser.  However, when I try to use my 10.1” Samsung Note II
>> tablet with Mobile Chrome Version 31.0.1650.59 I get an error on the
>> console: “choked before able to send whole file (post)”.  The full
>> listing of the console follows.  Have I built the library incorrectly?
>
> I don't think so... I thnk I have introduced that problem recently, and
> since I test on x86 with Chrome browser normally I did not notice it.
>
> I'm studying it at the moment.

OK this should fix it

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

-Andy

> -Andy
>
>> John Harrison
>>
>> ----------------------------------------------------
>>
>>  >>libwebsockets-test-server --resource_path
>> /home/john/Software/WebSocket/WebSockets/res
>>
>> Setting resource path to "/home/john/Software/WebSocket/WebSockets/res"
>>
>> lwsts[1633]: libwebsockets test server - (C) Copyright 2010-2013 Andy
>> Green <andy at warmcat.com> - licensed under LGPL2.1
>>
>> lwsts[1633]: Initial logging level 7
>>
>> lwsts[1633]: Library version: 1.3 944a78d
>>
>> lwsts[1633]:  Started with daemon pid 0
>>
>> lwsts[1633]:  static allocation: 4436 + (12 x 1024 fds) = 16724 bytes
>>
>> lwsts[1633]:  canonical_hostname = vm-hagtec
>>
>> lwsts[1633]:  Compiled without SSL support
>>
>> lwsts[1633]:  per-conn mem: 112 + 1554 headers + protocol rx buf
>>
>> lwsts[1633]:  Listening on port 7681
>>
>>      GET URI = /
>>
>>      Host = 192.168.1.10:7681
>>
>>      Connection = keep-alive
>>
>>      Accept: =
>> text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
>>
>>
>>      Accept-Encoding: = gzip,deflate,sdch
>>
>>      Accept-Language: = en-US,en;q=0.8
>>
>>      Cache-Control: = max-age=0
>>
>>      Cookie: = test=LWS_1386456117_321415_COOKIE
>>
>> lwsts[1633]: choked before able to send whole file (post)
>>
>>
>>
>> _______________________________________________
>> Libwebsockets mailing list
>> Libwebsockets at ml.libwebsockets.org
>> http://ml.libwebsockets.org/mailman/listinfo/libwebsockets
>>
>




More information about the Libwebsockets mailing list