CVS log for: request.c
Revision 1.15 - roper - November 07, 2003 at 18:50:08
Branches: TRUNK
Diff to: 1.14, 1.13, 1.12, 1.11, 1.10, 1.9, 1.8, 1.7, 1.6, 1.5Keep-alive actually works now. Major request parsing cleanup.
Revision 1.14 - roper - October 28, 2003 at 21:06:06
Branches: TRUNK
Buffering code can now return complete lines of a request. When this
is used in request.c, the code will get a lot cleaner.
Revision 1.13 - roper - October 28, 2003 at 17:33:23
Branches: TRUNK
Lots of changes:
* Use either buffering code taken from Apache or TCP_CORK to minimize
network traffic.
* Sockets are now properly 'half-closed' before being truly closed
* Make 503 responses a compile time option
* Make HTTP PUT a compile time option
* Added -b command line switch to change server's accept backlog
* Lots of code cleanup
* More statistics kept for verbose (-v) output
Revision 1.12 - roper - October 07, 2003 at 16:27:29
Branches: TRUNK
TCP_CORK used by default if available; can be disabled by autoconf.
Revision 1.11 - roper - September 22, 2003 at 23:52:56
Branches: TRUNK
- pth_writev() is used to combine headers with body instead of issuing
multiple pth_write()'s; this should be faster because it results in
fewer internal copies of the data
- filename(s) of index files can be set in cow.conf now
- added ability to limit response concurrency
Revision 1.10 - roper - August 28, 2003 at 22:39:07
Branches: TRUNK
* can now build against libdmalloc
* CoW can background itself (and does so by default)
* fixed minor connection counting bug
Revision 1.9 - roper - August 15, 2003 at 17:53:37
Branches: TRUNK
- fixed critical bug that caused only the first part (probably about 256K)
of a file to actually be returned to the user
- CoW was using a pool of pmsg structures for communication between the
main thread and the depot, but was malloc'ing messages sent from the
depot to the handlers; messages are now forwarded to handlers instead of
copied so we avoid the malloc overhead
- CoW now re-uses server socket so we don't have to wait a couple minutes
after shutdown before restarting (avoids "Address in use" messages)
Revision 1.8 - roper - August 13, 2003 at 01:40:12
Branches: TRUNK
Properly handles EAGAIN on non-blocking IO; we'll now actually send the
entire file instead of just the first chunk. Also fixed some keep-alive
related bugginess. Keep alive still doesn't work, but we're a small
step closer.
Revision 1.7 - roper - August 08, 2003 at 22:45:19
Branches: TRUNK
- added config option to disable TCP Nagle algorithm
- made request.c more lenient in terms of input; also heavily
cleaned up/commented code
Revision 1.6 - roper - July 23, 2003 at 20:54:59
Branches: TRUNK
Many changes:
- beginning of logging support
- fix bug in Makefile for config.l.c
- code reformatting
- prepare for release (AUTHORS, Changelog, etc.)
Revision 1.5 - roper - July 21, 2003 at 20:00:23
Branches: TRUNK
Added configuration file support. Also updated the build system some more.
Although the config file support is in place, not all of its options are
completely supported yet.
Revision 1.4 - roper - July 11, 2003 at 20:20:37
Branches: TRUNK
Don't print status messages when we're trying to benchmark. Also change
gcc's C standard to C99 with GNU extensions (i.e. allow stuff like C++
style comments that Takashi uses a lot of).
Revision 1.3 - roper - July 10, 2003 at 20:12:20
Branches: TRUNK
Fixed major depot loop bug that caused CoW to crash on the first request.
Also added lots of comments to the depot and made some more reformatting
changes.
Revision 1.2 - roper - July 09, 2003 at 17:02:00
Branches: TRUNK
Changed indentation style.
Revision 1.1.1.1 - roper - July 03, 2003 at 21:14:41
Branches: TRUNK
Initial import of Takashi's CoW code (version 0.3.2).
Revision 1.1 - roper - July 03, 2003 at 21:14:41
Branches: 1.1.1.1
Initial revision