CVS log for: depot.c
Revision 1.10 - roper - October 28, 2003 at 17:33:23
Branches: TRUNK
Diff to: 1.9, 1.8, 1.7, 1.6, 1.5, 1.4, 1.3, 1.2, 1.1Lots 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.9 - roper - September 22, 2003 at 23:52:56
Branches: TRUNK
Diff to: 1.8- 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.8 - 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.7 - 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.6 - 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.5 - roper - July 16, 2003 at 16:42:28
Branches: TRUNK
Force accept thread to wait if the depot falls behind and has a full message
queue. This prevents the accept thread from reusing pmsg structures before
the depot has processed them (premature reuse of these structures caused the
same message to be placed on the message queue multiple times which caused
all kinds of internal pth problems).
Also fixed a couple compile-time warnings.
Revision 1.4 - 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.3 - roper - July 10, 2003 at 15:52:30
Branches: TRUNK
Indentation changes and minor build fix.
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