18 Commits (5fc9ce547c4b06bf9f63e15b15a6522ff999abcf)

Author SHA1 Message Date
Georg Hopp 1fb8628861 fix memory leak introduced when https was added as well as a bug in request line parsing 14 years ago
Georg Hopp f1215c6758 closes #19: first integration of OpenSSL...this makes leak testing with valgrind a pain so i will think about some conditional to activate and deactivate it. Additionally it seems that some memory will be left over somewhere, maybe i missed somed cleanup function i have to call and finally the integration really needs error handling. 14 years ago
Georg Hopp 4893b4173e fix leak on shutdown created because of missing to delete new stream class on shutdown 14 years ago
Georg Hopp 87b0d50d1d structural changes for worker/process. @TODO actually i have no idea why this happens. 14 years ago
Georg Hopp 424297cd57 now when a constructor returns -1 the new call will in turn call the destructor effectively freeing all resources. ATTENTION: now the destructor has to be aware that it might be called with a not completely initialized object. To make this more ease there is the FREE makro with the corresponding ffree that does NULL pointer checking and the destructor checks for NULL pointer too. Additionally the handle_accept now handles _SC_OPEN_MAX - 10 connections. The 10 are reserved for internal usage. 14 years ago
Georg Hopp 7f688412ea some code cleanups...no changes in the logic 14 years ago
Georg Hopp b38d402250 start documenting this whole stuff...well at least add a copyright information in each file 14 years ago
Georg Hopp 20af2baa6f separated the server completely from the http processing 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 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 983c933908 fix seaks and hangs after adding response object (mostly not related with the response object but how i integated it into serverRun 14 years ago
Georg Hopp f82c178b5b started a response handler and changed serverRun to use it for its response 14 years ago
Georg Hopp 9198f7e7aa fixed bug at server destructor 14 years ago
Georg Hopp 90476e07d8 add StreamReader interface, modify HttpRequestParser and Server to use it 14 years ago
Georg Hopp 2d6305c3d6 changed class tool. Now multiple interface per class are supported as well as simple inheritence. 14 years ago
Georg Hopp c33578329c changed from select(UNIX) to poll(POSIX) 14 years ago
Georg Hopp c6635e3904 more work on socket handling stuff... @TODO think about renaming it to connection as it only handles TCP sockets 14 years ago
Georg Hopp d2848c0b14 add info text about file handle passing and ported more stuff from my old server structure 14 years ago