Robert James Kaes
a67fb30bdf
Removed all the code relating to the DNS API (dnsclient.h) as it's no
...
longer needed with the new pre-forked model.
2002-05-26 18:52:23 +00:00
Robert James Kaes
391a408eee
Fixed a tonne of spelling mistakes.
2002-05-24 04:45:32 +00:00
Robert James Kaes
16386fbb70
Added a new signal handler to handle SIGCHLD signals because of the new
...
dnsserver child process.
Changed the set signal calls to use our new set_signal_handler() function.
Added code to start the "dnsserver" child process.
2002-05-23 18:27:01 +00:00
Robert James Kaes
89ada2df28
Moved bind_address inside the config structure.
2002-04-24 16:45:45 +00:00
Robert James Kaes
2ec7a4dd72
The log_message() function now stores the messages if the configuration
...
file has not been read yet. The reason for this is that we don't know
where to log the messgaes until _after_ the config file has been
processed.
2002-04-22 19:34:20 +00:00
Robert James Kaes
9a8d732a13
Changed all calls to strdup to safestrdup. This should provide better
...
memory usage tracking.
2002-04-18 17:59:21 +00:00
Robert James Kaes
43860d2469
Moved the filter_destroy() logic from inside the signal handler. It's now
...
been moved to inside the main() function.
2002-04-18 17:04:04 +00:00
Robert James Kaes
5822ec3d44
Moved the log rotation code out of the signal handler and into it's own
...
function. The signal handler now simply sets a flag which is monitored
inside the thread_main_loop() function. The log rotation code has also
been tightened to handle any error conditions better. Credit to Petr
Lampa for suggesting that system functions inside of a signal handler is
bad magic.
2002-04-18 16:57:06 +00:00
Robert James Kaes
0d66719c5a
Just moved the looping code from main() into thread_main_loop().
2002-04-08 21:35:10 +00:00
Robert James Kaes
1d52d9d510
Updated the copyright notice.
2002-04-07 21:36:39 +00:00
Robert James Kaes
1819c0f818
Added code to check for "errors" from the accept call in thread_main() and
...
also a new thread_kill_threads() function which should cancel all threads
when the main thread is being closed.
2002-01-25 00:01:45 +00:00
Robert James Kaes
831b00dc7a
Made the error message regarding the Idle timeout more verbose, and
...
changed the level to WARNING.
2001-12-23 22:00:36 +00:00
Robert James Kaes
75ab2c8de3
Removed the include "dnscache.h" header file.
2001-12-15 06:02:16 +00:00
Robert James Kaes
787ece6c01
Reformated text.
2001-11-22 00:31:10 +00:00
Robert James Kaes
4ac03908fc
Header reorganization. Basically all system headers are now included in
...
tinyproxy.h and all the other files include the tinyproxy.h header. This
moves all the dependancy issues into one file.
2001-10-25 17:27:39 +00:00
Robert James Kaes
490754594e
Added a check to make sure the Upstream and Tunnel directives are not both
...
set in the configuration file.
2001-09-16 20:11:54 +00:00
Robert James Kaes
4619035cd2
Fixed a problem where log messages could be missed during a rotate.
2001-09-16 05:38:27 +00:00
Robert James Kaes
d3213f193c
Changed to rotating the log file instead of truncating it. Also using the
...
create_file_safely() function to eliminate potential security problems.
2001-09-15 21:29:22 +00:00
Robert James Kaes
1a9dc4e7e8
Error message cleanup.
2001-09-07 04:21:07 +00:00
Robert James Kaes
d06ddc50ab
Removed the new_dnscache() call.
2001-08-29 04:01:05 +00:00
Robert James Kaes
5530451545
Renamed versiondisp() to display_version() and added the PACKAGE, VERSION,
...
and TARGET_SYSTEM into the version list. Also moved the license into a
separate function. Renamed usagedisp() to display_usage(). Fixed a problem
where the anonymous search tree was being created _after_ it was being
accessed.
2001-08-26 21:17:30 +00:00
Robert James Kaes
f43404aeef
Removed the DEFAULT_LOG, DEFAULT_PORT, and DEFAULT_USER directives since
...
these MUST be set in the configuration file.
2001-06-04 23:30:34 +00:00
Robert James Kaes
e45c95fa97
LOG_EMERG doesn't exist anymore, so replace it with LOG_CRIT.
2001-06-02 03:10:34 +00:00
Robert James Kaes
1cd4d6d440
Added code to stop the creation of core files.
...
Changed all references to log() to log_message().
2001-05-27 02:36:22 +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
c01af94a1c
Fixed spelling mistake.
2000-11-23 04:46:48 +00:00
Robert James Kaes
1de608ec5c
Added the initialization section for the DNS and Anonymous sub systems.
2000-10-23 21:44:43 +00:00
Robert James Kaes
8398c7337d
There is no LOG_EMERG level, so changed to LOG_CRIT.
2000-09-21 16:57:10 +00:00
Robert James Kaes
9f080da488
Fixed the change user/group ability.
...
Log when tinyproxy is using default values rather than specific ones.
Cleaned up the command line arguments since tinyproxy now uses a
configuration file.
Removed the USR1 signal and added the thread creation code.
2000-09-12 00:03:53 +00:00
Robert James Kaes
0edeabbd63
Removed the allowedhdr_s structure since it is now accessed through
...
anonymous.*
2000-03-31 20:08:19 +00:00
Robert James Kaes
10317d6701
Included the changes needed to re-add the upstream proxy option.
2000-03-11 20:37:44 +00:00
Steven Young
37e63909c0
This commit was generated by cvs2svn to compensate for changes in r2,
...
which included commits to RCS files with non-trunk default branches.
2000-02-16 17:32:49 +00:00