Commit Graph

14 Commits

Author SHA1 Message Date
Robert James Kaes
0668e42e8f Changed all the mallocs and callocs to use the new safemalloc and
safecalloc.
2001-09-08 18:58:37 +00:00
Robert James Kaes
b8a694e7a3 Fixed a memory leak in thread_main(). 2001-09-08 06:29:04 +00:00
Robert James Kaes
28d955a3c8 Explictly added the DETACHED creation method on threads. 2001-09-07 18:19:39 +00:00
Robert James Kaes
ea1309bf73 Error message cleanup.
Include locking around access to the servers_waiting variable.
2001-09-07 04:19:05 +00:00
Robert James Kaes
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.
2001-09-06 21:16:35 +00:00
Robert James Kaes
445aaca53e Initialzed the servers_waiting explictly. Added debugging code to find out
why the threads are not being closed.
2001-09-06 19:00:47 +00:00
Robert James Kaes
fd65072f1f Changed the default stack size to 128 KB. 2001-08-28 04:33:21 +00:00
Robert James Kaes
e88c426966 Changed the default stack size since some OS's have a stack size which is
too small.
2001-08-27 17:45:50 +00:00
Robert James Kaes
7fe7ee2828 Fixed a problem where child threads would not be closed if they had been
created after the initial creation. Also fixed a problem where the status
of the threads were not going back to T_WAITING if MaxRequestsPerChild was
0.
2001-08-26 21:14:30 +00:00
Robert James Kaes
b242a2896e Changed the thread_main() function to only deal with the connections per
thread if the user has actually requested it.
Also changed some of the data types for the variables.
2001-05-27 02:33:35 +00:00
Robert James Kaes
fedbe888e8 Fixed a potential problem with not zeroing the number of connections when
the threads are emptied.
2001-05-23 17:56:35 +00:00
Robert James Kaes
d5467e404b Implimented the MaxRequestsPerChild directive. 2000-12-09 02:35:30 +00:00
Robert James Kaes
0051208777 Fixed a problem with polling for the number of active threads. No longer
polls. :)
2000-12-08 03:35:07 +00:00
Robert James Kaes
322a53eb56 tinyproxy now uses a pool of threads to handle connections. All the work
for creating new threads, deleting old thread, and generally managing the
pool is done here.
2000-09-12 00:07:44 +00:00