[Libwebsockets] [libwebsockets] #42: calculates number of actually sent bytes incorrectly in libwebsockets_write

Trac trac at libwebsockets.org
Fri Oct 18 12:25:40 CEST 2013


#42: calculates number of actually sent bytes incorrectly in libwebsockets_write
-------------------------------------+-----------------
  Reporter:  andreaspakulat          |      Owner:
      Type:  defect                  |     Status:  new
  Priority:  major                   |  Milestone:
 Component:  libwebsocket test apps  |    Version:
Resolution:                          |   Keywords:
-------------------------------------+-----------------

Comment (by andreaspakulat):

 Replying to [comment:7 agreen]:
 > Replying to [comment:6 andreaspakulat]:
 > > Setting rx_buffer_size does not seem to help, note that I'm using lws
 on the server side of things. I'm now setting it to 64K and trying to send
 32K of payload, splitting my actual data using fragments.
 > >
 > > The first 3-4 websocket frames are smaller than 512 bytes and go
 across without issue. The next one is the 500K frame and handing over the
 first 32K of it to lws lets me run into that new code block you added in
 759f4ac4e54642e07c8eabb5cc8c7794fec19b62, i.e. I see "partial send 32772
 sent, 22976 accepted" here.
 >
 > I see, from your description that sounds like evidence the SO_SNDBUF
 arrangements are not enough :-/
 >
 > What OS are you running on?

 This is Debian/GNU Linux unstable. A 3.10 Kernel. The connection is done
 via the loopback interface. Let me know if there's some particular lws log
 output you're interested in.

--
Ticket URL: <http://libwebsockets.org/trac/libwebsockets/ticket/42#comment:8>
libwebsockets <http://libwebsockets.org>
libwebsockets C library



More information about the Libwebsockets mailing list