-
…\'echo -en "GET / HTTP\r\nConn" | nc -w 600 localhost 11212\' and then doing requests from my browser. @TODO: cleanup those stuff, check if a not correctly response reading would block the server.
-
…ing a single read and write circular buffer for every connection. @TODO: i noticed a server hang while getting large data (my image) with non keep-alive connections. Additionally an incomplete keep-alive request might stop the server now as the lock on the read buffer will not be released.
-
…alive sessions but is much slower without. actually i am not sure why but most likely the shared memory setup is quite expensive. @TODO: make a profiling.
-
… ringbuffer is implemented using the shared memory trick.
-
…and -2 es error indicator in my server and fixed caculation of remainig buffer size in reader
-
…ite complete response handline.
-
…ould be possible to implement a stream writer for images
-
… other systems. Removed the qsort calls on server->fds making O(2nlogn) to O(n)
-
…sponse object but how i integated it into serverRun
-
as i first wrote the parser i used static valiables to hold the state of the currently parsed request. If a request would spread of multiple reads this would lead to one reqeust messing up the state of another. not those states are part of the parser object itself where they belong.
-
…as well as no headers would be found any more