-
…\'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.
-
…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
-
… 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
-
… now as it seems header identifier should be case insensitive
-
…should also look for content-encoding)
-
…handles are not closed and freed correctly as the service refuses connections after about a 1000.
-
…ed requests there. The server now gets the queue and prints completed requests.