[Libwebsockets] [libwebsockets] #70: Zero copy receive

Trac trac at libwebsockets.org
Sun Apr 27 10:55:59 CEST 2014

#70: Zero copy receive
 Reporter:  sojan.james@…          |      Owner:
     Type:  enhancement            |     Status:  new
 Priority:  major                  |  Milestone:
Component:  libwebsockets library  |    Version:
 Keywords:                         |

 First of all, thank you for this wonderful little library. This is just
 what I was looking for.

 For performance reasons, I am looking for a way to avoid copying the
 receive buffers.

 My idea is that libwebsockets can use the callback to obtain the next rx-
 buffer from the client.  Every receive callback will assume that the
 buffer ownership is transferred to the client.

 The client can manage the buffer pool and pass the buffers through the
 stack without having to copy it.

 What do you think?


Ticket URL: <http://libwebsockets.org/trac/libwebsockets/ticket/70>
libwebsockets <http://libwebsockets.org>
libwebsockets C library

More information about the Libwebsockets mailing list