canonical libwebsockets.org websocket library
![]() under load, writing packet sizes to the socket that are normally fine can do partial writes, eg asking to write 4096 may only take 2800 of it and return 2800 from the actual send. Until now lws assumed that if it was safe to send, it could take any size buffer, that's not the case under load. This patch changes lws_write to return the amount actually taken... that and the meaning of it becomes tricky when dealing with compressed links, the amount taken and the amount sent differ. Also there is no way to recover at the moment from a protocol-encoded frame only being partially accepted... however for http file send content it can and does recover now. Small frames don't have to take any care about it but large atomic sends (> 2K) have been seen to fail under load. Signed-off-by: Andy Green <andy.green@linaro.org> |
||
---|---|---|
cmake | ||
lib | ||
m4 | ||
scripts | ||
test-server | ||
win32port | ||
.gitignore | ||
autogen.sh | ||
changelog | ||
CMakeLists.txt | ||
config.h.cmake | ||
configure.ac | ||
COPYING | ||
INSTALL | ||
libwebsockets-api-doc.html | ||
libwebsockets.pc.in | ||
libwebsockets.spec | ||
LICENSE | ||
Makefile.am | ||
README | ||
README.build | ||
README.coding | ||
README.test-apps |
This is the libwebsockets C library for lightweight websocket clients and servers. For support, visit http://libwebsockets.org and consider joining the project mailing list at http://ml.libwebsockets.org/mailman/listinfo/libwebsockets You can get the latest version of the library from git http://git.libwebsockets.org https://github.com/warmcat/libwebsockets for more information: README.build - information on building the library README.coding - information for writing code using the library README.test-apps - information about the test apps built with the library