1 |
2002-08-12 Yoshinori K. Okuji <okuji@enbug.org> |
2002-08-14 Yoshinori K. Okuji <okuji@enbug.org> |
2 |
|
|
3 |
* server/bts/system.rb (initialize): Fix a typo: $VESION => |
I have rewritten this package completely, so ChangeLog also |
4 |
$VERSION. |
starts from scratch. |
|
(run): Don't create a new thread. |
|
|
(main): Limit the number of threads, using ThreadGroup. |
|
|
Set the safe level of a thread here. |
|
|
|
|
|
* server/bts/session.rb (CANONICAL_METAVARIABLES): New constant. |
|
|
(initialize): Set @buffer to an empty string. |
|
|
(gets): Rewritten. |
|
|
(handle_mail): Check too long mail. |
|
|
(handle_cgi): Check too big value of a metavariable. |
|
|
Add a metavariable only if its name is included by |
|
|
CANONICAL_METAVARIABLES or starts with `HTTP_'. |
|
|
Check too big HTTP request. |
|
|
(handle_command): New method. |
|
|
(run): Rewritten. |
|
|
(close): Added a debug message. |
|
|
|
|
|
* server/bts/config.rb (initialize): Handle some additional |
|
|
elements: `server/max-threads', `session/max-size', |
|
|
`session/max-time' and `session/max-commands'. |
|
|
(server_max_threads): New method. |
|
|
(session_max_size): Likewise. |
|
|
(session_max_time): Likewise. |
|
|
(session_max_commands): Likewise. |
|
|
|
|
|
2002-08-10 Yoshinori K. Okuji <okuji@enbug.org> |
|
|
|
|
|
* server/session.rb: New file. |
|
5 |
|
|
6 |
* server/bts/system.rb (parse_opts): used `+= 1' instead of |
* ChangeLog: New file. |
|
`succ!', because Fixnum doesn't support the method succ!. |
|
|
(initialize): Make a TCPServer object. |
|
|
(run): Rescue some exceptions to output error messages to @@log. |
|
|
(main): Implemented. |
|
|
|
|
|
* server/bugcommd.in: Added the `-w' option. |
|
|
|
|
|
2002-08-10 Yoshinori K. Okuji <okuji@enbug.org> |
|
|
|
|
|
* server/bts/config.rb: New file. |
|
|
* server/bts/exception.rb: Likewise. |
|
|
|
|
|
* server/bts/system.rb: Require bts/config. |
|
|
(initialize): Assign a Config object to @config. |
|
|
|
|
|
* server/bts/Makefile.am (dist_bts_DATA): Added config.rb and |
|
|
exception.rb. |
|
|
|
|
|
2002-08-08 Yoshinori K. Okuji <okuji@enbug.org> |
|
|
|
|
|
* server/bts/system.rb: Require getoptlong. |
|
|
(@@verbosity): New class variable. |
|
|
(@@log): Likewise. |
|
|
(show_help): New method. |
|
|
(parse_opts): Likewise. |
|
|
(main): Likewise. |
|
|
(initialize): Implemeted. |
|
|
(run): Likewise. |
|
|
(error): New class method. |
|
|
(info): Likewise. |
|
|
(debug): Likewise. |
|
|
|
|
|
* server/bugcommd.in ($VERSION): New variable. |
|
|
($DEFAULT_CONFIG_FILE): Likewise. |
|
|
|
|
|
* configure.ac (--with-config-file): New option. |
|
|
|
|
|
2002-08-08 Yoshinori K. Okuji <okuji@enbug.org> |
|
|
|
|
|
* server/bugcommd.in: Added a copyright notice. |
|
|
|
|
|
2002-07-29 Yoshinori K. Okuji <okuji@enbug.org> |
|
|
|
|
|
* Makefile.am (DIST_SUBDIRS): Added server. |
|
|
|
|
|
* clients/cgi/Makefile.am (cgidir): New variable. |
|
|
(bin_PROGRAMS): Renamed to ... |
|
|
(cgi_PROGRAMS): ... this. |
|
|
|
|
|
* configure.ac (--with-cgidir): New option. |
|
|
(--disable-server): Likewise. |
|
|
(RUBYDIR): New variable. |
|
|
(BUGCOMM_SUBDIRS): Added server, if ENABLE_SERVER isn't "no". |
|
|
(AC_CONFIG_FILES): Added server/bugcommd, server/Makefile, and |
|
|
server/bts/Makefile. |
|
|
|
|
|
* server/Makefile.am: New file. |
|
|
* server/Makefile.in: Generated by automake. |
|
|
* server/bugcommd.in: New file. |
|
|
|
|
|
* server/bts/Makefile.am: New file. |
|
|
* server/bts/Makefile.in: Generated by automake. |
|
|
* server/system.rb: New file. |
|
|
|
|
|
2002-07-26 Yoshinori K. Okuji <okuji@enbug.org> |
|
|
|
|
|
* clients/lib/parse_config.c (parse_config): Initialize P with |
|
|
zero (NULL). |
|
|
|
|
|
* clients/include/bugcomm.h: Include <ctype.h>. |
|
|
(ATTR_UNUSED): New macro. |
|
|
|
|
|
* clients/bugcomm/bugcomm.c (negotiate_protocol): Don't call |
|
|
ferror unnecessarily. Use strncmp instead of strcmp. |
|
|
(send_mail): Likewise. Also, use fputs and fputc instead of |
|
|
fwrite. |
|
|
(bye): Rewritten entirely. |
|
|
(handle_mail): Remove LEN, because it was unused. |
|
|
(run): Free CONFIG.HOST right after calling connect_server. |
|
|
(alarm_handler): Append the macro ATTR_UNUSED to the argument |
|
|
SIGNUM. |
|
|
|
|
|
* configure.ac (AC_CONFIG_FILES): Added clients/cgi/Makefile. |
|
|
: If CC is GCC, add -Wall and -W into CFLAGS. |
|
|
(AC_REPLACE_FUNCS): Added stpcpy. |
|
|
(AC_CONFIG_FILES): Added clients/cgi/Makefile. |
|
|
|
|
|
* clients/Makefile.am (SUBDIRS): Added cgi. |
|
|
|
|
|
* clients/cgi/Makefile.am: New file. |
|
|
* clients/cgi/Makefile.in: Likewise. |
|
|
* clients/cgi/cgi.c: Likewise. |
|
|
* clients/lib/stpcpy.c: Likewise. |
|
|
|
|
|
2002-07-26 Yoshinori K. Okuji <okuji@enbug.org> |
|
|
|
|
|
* clients/bugcomm/bugcomm.c (main): Mistook the short options, |
|
|
-V and -v. |
|
|
(usage): Mention the short options. |
|
|
(run): Add one more verbose message. |
|
|
(send_mail): Check if the length of a line exceeds 1000. If it |
|
|
does, return EX_DATAERR. |
|
|
(EX_DATAERR): New macro. |
|
|
|
|
|
2002-07-25 Yoshinori K. Okuji <okuji@enbug.org> |
|
|
|
|
|
* ChangeLog: New file. |
|
|
|
|