75 Commits (646d1e1c50ad972e8098c2b23e531d58a043c181)

Author SHA1 Message Date
Georg Hopp 0fba746fe2 first working version of content delivery from file....very crude... @TODO: rewrite complete response handline. 14 years ago
Georg Hopp d87cd09ba1 more generalizing of response writing (implemented a response writer...now it should be possible to implement a stream writer for images 14 years ago
Georg Hopp fa58a6cc81 make http request and response childs of a common parent http message 14 years ago
Georg Hopp ab21de50dd remove now obsoleted header_sort 14 years ago
Georg Hopp e67667881f change response to tree based header storage and make everything work. 14 years ago
Georg Hopp bf6a341b4c changed header hashing to use btree (GNU only). @TODO: make this conditional for other systems. Removed the qsort calls on server->fds making O(2nlogn) to O(n) 14 years ago
Georg Hopp f82c178b5b started a response handler and changed serverRun to use it for its response 14 years ago
Georg Hopp 3d735c7fc7 made a first cruel handling for keep-alive and non keep-alive requests. @TODO: this MUST BE cleaned 14 years ago
Georg Hopp 6c888a8c07 now only use keep-alive.... 14 years ago
Georg Hopp a4d09213ba moved request_parser.h and request_queue.h in separeate request subfolder 14 years ago
Georg Hopp 6aef05cf7f fix rather nasty reentrance bug 14 years ago
Georg Hopp 4a075de846 fix bug that arose in rewrite of header get and results in an ugly memory leak, as well as no headers would be found any more 14 years ago
Georg Hopp 3dac803c41 fix memory leak created while changing things 14 years ago
Georg Hopp cb75a749e9 start split of request parser 14 years ago
Georg Hopp 1c5d6099f5 add missing header_get to repo and build header hash only from lowercase letters now as it seems header identifier should be case insensitive 14 years ago
Georg Hopp f678adcae4 access to headers via hash, read body (actually only with content-length header should also look for content-encoding) 14 years ago
Georg Hopp 98488d5588 oops commit...forgot to add request_queue.c 14 years ago
Georg Hopp 228b1d0d29 changed request handling. @TODO: I still seem to have the problem that the file handles are not closed and freed correctly as the service refuses connections after about a 1000. 14 years ago
Georg Hopp 68e9682380 now stuff seems to work correct even if read does not provide a complete request (tested with telnet) 14 years ago
Georg Hopp 90df11c014 now each HttpRequestParser initializes its own request queue and enqueus completed requests there. The server now gets the queue and prints completed requests. 14 years ago
Georg Hopp 0a9bca482e started filling out a request object with the parser 14 years ago
Georg Hopp 81d98966a4 porformance improvement in parsing process (no longer do alloc and free on each line) 14 years ago
Georg Hopp f1bf7c49f7 basic request parsing (line by line) implemented 14 years ago
Georg Hopp 90476e07d8 add StreamReader interface, modify HttpRequestParser and Server to use it 14 years ago
Georg Hopp 2dcc288a40 some latest work 14 years ago