Commit Graph

  • ea4d707d12 Finally got the SSL problem fixed. We can not send _any_ client headers (including the new line) to the origin server when in tunnelling mode. SSL now works correctly. Yeah. Robert James Kaes 2001-09-14 21:16:56 +0000
  • 9c520c7a50 Changed the buffer pointer in safe_write() to be const void* since we're not changing the values. Robert James Kaes 2001-09-14 19:50:45 +0000
  • dab361f764 When logging an error indicate the file descriptor and the error number. Robert James Kaes 2001-09-14 19:49:10 +0000
  • 7bfb5527ff Include the SSL field in the connection structure since we're going to handle SSL connections. Robert James Kaes 2001-09-14 04:56:58 +0000
  • c6d2e0f7ff Massive changes. Split process_method() into a bunch of smaller files and changed the parsing code from REGEX and uri.c to a simplier sscanf() method. Also, include code to handle SSL connections, but that's not quite working yet. Robert James Kaes 2001-09-14 04:56:29 +0000
  • bce9e6601e Removed the reference to uri.c and uri.h since the new reqs.c doesn't use them. Robert James Kaes 2001-09-14 04:55:06 +0000
  • 6f6730c28d Fixed a memory leak in process_method(). Robert James Kaes 2001-09-12 03:33:43 +0000
  • c48aea165d Fixed memory leak. Robert James Kaes 2001-09-12 03:33:15 +0000
  • 25457361c7 Changed mallocs to callocs. Robert James Kaes 2001-09-12 03:32:54 +0000
  • ac4bbe6bd6 Increased the number of "insertions" before the free memory. Robert James Kaes 2001-09-12 03:32:24 +0000
  • cbe19e29c7 More changes. These all relate to the switch from stack memory to heap memory. Robert James Kaes 2001-09-11 19:28:00 +0000
  • e2f10bc2ea Added the debugging realloc() function. Robert James Kaes 2001-09-11 19:27:27 +0000
  • 2c3cc9185d Set the stack size of threads to 32KB from 128KB. Robert James Kaes 2001-09-11 19:27:09 +0000
  • f8edd2d8b4 Switched the memory allocation for the large strings to heap based instead of stack based. Robert James Kaes 2001-09-11 19:26:49 +0000
  • 5dd98ac658 Bumped up the preversion number Robert James Kaes 2001-09-11 19:24:44 +0000
  • 8aca9455b2 Style stuff. Robert James Kaes 2001-09-11 04:38:23 +0000
  • 04ea116e8e Updated version number. Robert James Kaes 2001-09-11 04:21:18 +0000
  • 1bc68cc41d Fixed a memory leak. Robert James Kaes 2001-09-11 04:14:43 +0000
  • 365df5b5be Used safecalloc() instead of malloc() and memset(). Fixed a potential memory leak with the regular expression engine. Robert James Kaes 2001-09-11 04:13:58 +0000
  • c04ffd3913 Comment cleanup. Robert James Kaes 2001-09-11 04:12:47 +0000
  • 07bcd97961 More changes. Robert James Kaes 2001-09-08 18:59:13 +0000
  • 80fc4a8b94 New pre version Robert James Kaes 2001-09-08 18:58:57 +0000
  • 0668e42e8f Changed all the mallocs and callocs to use the new safemalloc and safecalloc. Robert James Kaes 2001-09-08 18:58:37 +0000
  • d5253ec5f4 Lowered the number BUFARRAY and BUFSIZE constants to reduce the maximum memory usage of a ternary tree. It now should not exceed 4MB of memory. Robert James Kaes 2001-09-08 18:58:02 +0000
  • 78bc90cd07 Lowered the number of insertions before the ternary tree is rebuilt. Robert James Kaes 2001-09-08 18:56:30 +0000
  • 4923dd22a7 Added the debugging_(malloc|calloc|free) functions to help track memory usage. There are also now defines for safe(malloc|calloc|free) which allow for debugging code to be enabled or not. Robert James Kaes 2001-09-08 18:55:58 +0000
  • b8a694e7a3 Fixed a memory leak in thread_main(). Robert James Kaes 2001-09-08 06:29:04 +0000
  • 28d955a3c8 Explictly added the DETACHED creation method on threads. Robert James Kaes 2001-09-07 18:19:39 +0000
  • 2b781f537c Updates. Robert James Kaes 2001-09-07 04:21:53 +0000
  • 1a9dc4e7e8 Error message cleanup. Robert James Kaes 2001-09-07 04:21:07 +0000
  • f5b9bdb93d Fixed up return types. Robert James Kaes 2001-09-07 04:20:04 +0000
  • ea1309bf73 Error message cleanup. Include locking around access to the servers_waiting variable. Robert James Kaes 2001-09-07 04:19:05 +0000
  • 4dd64f873e Updates Robert James Kaes 2001-09-07 00:45:32 +0000
  • aa9e05430a Added the ability to clear out the DNS cache after a certain number of insertions. Robert James Kaes 2001-09-07 00:40:34 +0000
  • c24cace1d1 Fixed the ternary_destroy() function which causes segfaults. Robert James Kaes 2001-09-07 00:38:03 +0000
  • 32ce57a6f6 Still need to fix a problem with tinproxy segfaulting when we try to delete the ternary tree. Robert James Kaes 2001-09-06 21:53:16 +0000
  • 4670eb5194 Make sure that freeptr actually points to something before we try to invoke it. Robert James Kaes 2001-09-06 21:52:31 +0000
  • f2312262c7 Try moving the kill thread code into the thread_main() function so it can check if there are too many thread after it's finished with it's request. Needs to be cleaned up further (if this is the right idea) because of the locking around the servers_waiting variable. Robert James Kaes 2001-09-06 21:16:35 +0000
  • 445aaca53e Initialzed the servers_waiting explictly. Added debugging code to find out why the threads are not being closed. Robert James Kaes 2001-09-06 19:00:47 +0000
  • 7b09d88a75 This commit was manufactured by cvs2svn to create tag 'rel_1-4-2-2'. 1.4.2.2 cvs2svn 2001-09-04 18:31:44 +0000
  • 05cc60042e New news. :) Robert James Kaes 2001-09-04 18:31:43 +0000
  • 11cbe6cb5b More updates. Robert James Kaes 2001-09-04 18:22:12 +0000
  • c937858ec1 Moved the compare_header() test after the skip header test. Robert James Kaes 2001-09-04 18:22:00 +0000
  • 667b9d5d53 Switched to a case insensitive search method. Robert James Kaes 2001-09-04 17:53:41 +0000
  • 0094d2755b Bumped the version number. Robert James Kaes 2001-09-04 16:52:04 +0000
  • b095c7a84d Updates. Robert James Kaes 2001-09-04 16:50:45 +0000
  • 45a021a18b Fixed a format string bug with the syslog function. Robert James Kaes 2001-09-04 16:50:22 +0000
  • aac5f60602 Headers MUST have quotes around them. Robert James Kaes 2001-08-31 15:20:56 +0000
  • 2857b4be36 Spelling and grammar fixes. Robert James Kaes 2001-08-30 22:00:36 +0000
  • 4202928d35 This commit was manufactured by cvs2svn to create tag 'rel_1-4-2-1'. 1.4.2.1 cvs2svn 2001-08-30 16:58:42 +0000
  • 2577811738 New information for Thursday, August 30, 2001 Robert James Kaes 2001-08-30 16:58:41 +0000
  • 66012c4e8e Another new version. Robert James Kaes 2001-08-30 16:54:04 +0000
  • c825db8d56 More fixes. Robert James Kaes 2001-08-30 16:53:36 +0000
  • fc94a56f56 Removed the xstrstr() function since it is no longer used. reqs.c was the only place it was called from, and strstr() will do the same work. Robert James Kaes 2001-08-30 16:52:56 +0000
  • a328cefbf0 Renamed ternary_insert() to ternary_insert_replace() and added the ability to replace existing data (without a memory leak.) Added two DEFINES ternary_insert() and ternary_replace() to aid in coding. Robert James Kaes 2001-08-30 16:52:09 +0000
  • 22bdb8123d Replaced the call to xstrstr() with strstr(). Robert James Kaes 2001-08-30 16:51:10 +0000
  • c83c92a0d1 Removed the insert_data() function and made the LOCKing go around the entire dnscache() function. Replaced the "replace" code in dns_insert() with a call to ternary_replace(). Robert James Kaes 2001-08-30 16:50:42 +0000
  • 1736b918ec This commit was manufactured by cvs2svn to create tag 'rel_1-4-2'. 1.4.2 cvs2svn 2001-08-29 15:56:49 +0000
  • f68f30c7aa New style and new information. Robert James Kaes 2001-08-29 15:56:48 +0000
  • c165c83f55 New minor version number. Robert James Kaes 2001-08-29 15:29:29 +0000
  • 5584d30eed More change logs. Robert James Kaes 2001-08-29 04:06:00 +0000
  • 551e7cf39f Fixed a problem where the REGEX library was included even if the system already had a working library. Robert James Kaes 2001-08-29 04:05:33 +0000
  • 51e4ebb293 Text clean up. Robert James Kaes 2001-08-29 04:04:01 +0000
  • d06ddc50ab Removed the new_dnscache() call. Robert James Kaes 2001-08-29 04:01:05 +0000
  • fcff398f31 Cleaned up the locking code to make it more fine grained. Did this since dncache.c has locking itself now. Robert James Kaes 2001-08-29 04:00:22 +0000
  • 9bdfa623ba Changed how we handle when compiled with debug code. Robert James Kaes 2001-08-29 03:59:12 +0000
  • 4c24890f17 Removed the new_dnscache() function and the ternary.h include. Robert James Kaes 2001-08-29 03:58:39 +0000
  • c9a772e36b Added a more fine grained locking system for multiple threads. Removed the new_dnscache() function and moved it into dnscache(). Fixed a memory leak in dns_insert(). Robert James Kaes 2001-08-29 03:57:51 +0000
  • 2d1bbb13be This commit was manufactured by cvs2svn to create tag 'rel_1-4-1-5'. 1.4.1.5 cvs2svn 2001-08-28 15:54:53 +0000
  • f864ff281f Update regarding the log level problems. Robert James Kaes 2001-08-28 15:54:52 +0000
  • 1dd459c9ec New version number. Robert James Kaes 2001-08-28 15:52:53 +0000
  • 42849c7d66 Fixed a problem in log.c Robert James Kaes 2001-08-28 15:52:40 +0000
  • 9a61faa716 The logging levels _now_ output the correct information depending on where the config file sets it. Robert James Kaes 2001-08-28 15:51:58 +0000
  • 4dbc4a637b More changes. Robert James Kaes 2001-08-28 04:35:03 +0000
  • ee892c109b Added an extra CRNL to the end of the HTML body. Robert James Kaes 2001-08-28 04:33:54 +0000
  • fd65072f1f Changed the default stack size to 128 KB. Robert James Kaes 2001-08-28 04:33:21 +0000
  • f9d0fcd1a2 Moved the strip new line/carriage return from the end of a line into a separate function. Robert James Kaes 2001-08-28 04:32:14 +0000
  • 298784d80e Fixed a problem with the POSIX threading on FreeBSD systems. Robert James Kaes 2001-08-27 19:57:24 +0000
  • 3279a7e659 This commit was manufactured by cvs2svn to create tag 'rel_1-4-1-4'. 1.4.1.4 cvs2svn 2001-08-27 17:51:41 +0000
  • 88e4aed397 More news of course. Robert James Kaes 2001-08-27 17:51:40 +0000
  • 1c2a42af9c Stop CVS from giving me an error. Robert James Kaes 2001-08-27 17:48:27 +0000
  • f61c275395 More changes as per usual. :) Robert James Kaes 2001-08-27 17:47:40 +0000
  • 23b44e67df Bumped up the version number. Added a test for FreeBSD so that it can set GCC to compile with POSIX threading. Robert James Kaes 2001-08-27 17:47:25 +0000
  • f7d0ea8784 Changed the MIME type to text/html rather than the incorrect text/mime. Robert James Kaes 2001-08-27 17:46:50 +0000
  • be9ce3ad26 Moved some of the includes around so that FreeBSD can compile correctly. Robert James Kaes 2001-08-27 17:46:20 +0000
  • e88c426966 Changed the default stack size since some OS's have a stack size which is too small. Robert James Kaes 2001-08-27 17:45:50 +0000
  • bf7a671d87 Fixed a problem where the connect messages were not getting logged if the log level was set to INFO. Robert James Kaes 2001-08-27 17:44:55 +0000
  • 0c26769de3 This commit was manufactured by cvs2svn to create tag 'rel_1-4-1-3'. 1.4.1.3 cvs2svn 2001-08-27 03:52:06 +0000
  • f72ebfe0d8 More information regarding the various changes. Robert James Kaes 2001-08-27 03:52:05 +0000
  • c25c7a947f Updated the version number. Robert James Kaes 2001-08-27 03:47:47 +0000
  • 194e1ad9cc New change log entries. Robert James Kaes 2001-08-27 03:46:51 +0000
  • 3b5e17d579 Split the headers from the message body. Also now include proper headers like Date, Server, Content-Length, etc. Also, fixed the type for an error message to be const char*. Robert James Kaes 2001-08-27 03:45:34 +0000
  • 771425700d Fixed a SEGV problem with invalid requests. Robert James Kaes 2001-08-27 03:44:22 +0000
  • 4f8ac78352 This commit was manufactured by cvs2svn to create tag 'rel_1-4-1-2'. 1.4.1.2 cvs2svn 2001-08-27 01:05:33 +0000
  • 7be408859d Update the items which still need to be worked on. Robert James Kaes 2001-08-27 01:05:32 +0000
  • 7889aa4951 Don't include ./reconf in the tarball. Robert James Kaes 2001-08-27 01:05:06 +0000
  • f590a7d738 More changes. Robert James Kaes 2001-08-27 01:04:48 +0000
  • 32e3e6a94c This commit was manufactured by cvs2svn to create tag 'rel_1-4-1-1'. 1.4.1.1 cvs2svn 2001-08-26 23:37:27 +0000
  • cc70fc6f43 Fixed a problem with the new LOG_CONN log level. Robert James Kaes 2001-08-26 23:37:26 +0000
  • e19889ff5b Added the NDEBUG define in the optimized builds. Robert James Kaes 2001-08-26 23:36:48 +0000