1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/test-server
Andy Green b8b247d3e1 remove need for filepath buffer on http file serve
This gets rid of the stack buffer while serving files, and the
PATH_MAX char array that used to hold the filepath in the wsi.

It holds an extra file descriptor open while serving the file,
however it attempts to stuff the socket with as much of the
file as it can take.  For files of a few KB, that typically
completes (without blocking) in the call to
libwebsockets_serve_http_file() and then closes the file
descriptor before returning.

Signed-off-by: Andy Green <andy.green@linaro.org>
2013-02-08 12:19:01 +08:00
..
.gitignore Ignoring linux build files 2013-01-09 15:46:11 +08:00
favicon.ico refactor-into-dirs.patch 2010-11-01 09:12:17 +00:00
libwebsockets.org-logo.png add libwebsockets.org logo to share 2013-01-16 10:00:39 +08:00
Makefile.am introduce test echo 2013-01-30 12:28:44 +08:00
test-client.c remove all support for pre v13 protocols 2013-01-21 09:53:35 +08:00
test-echo.c fixes for without server and without client 2013-01-31 09:57:05 +08:00
test-fraggle.c remove all support for pre v13 protocols 2013-01-21 09:53:35 +08:00
test-ping.c Fix two typos. 2013-02-07 23:23:10 +08:00
test-server.c remove need for filepath buffer on http file serve 2013-02-08 12:19:01 +08:00
test.html renovate test html 2013-01-31 19:50:57 +08:00