]> git.ipfire.org Git - thirdparty/squid.git/commit - src/cf.data.pre
Author: Tsantilas Christos <chtsanti@users.sourceforge.net>
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 21 Dec 2009 12:05:22 +0000 (01:05 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 21 Dec 2009 12:05:22 +0000 (01:05 +1300)
commit5ef5e5ccd4f4985ca3a6c8f86ce000ad2422a8f5
treeb7b0cb0dee760f033ec79c432d6e1005024ae1ab
parent18631119640e02c7ad043eaf8600f5695a332882
Author: Tsantilas Christos <chtsanti@users.sourceforge.net>
Add support for write timeouts.

The development sponsored by the Measurement Factory

Description:
The write I/O timeout should trigger if Squid has data to write but
the connection is not ready to accept more data for the specified time.
If the write times out, the Comm caller's write handler is called with
an ETIMEDOUT COMM_ERROR error.

Comm may process a single write request in several chunks, without
caller's knowledge. The waiting time is reset internally by Comm after
each chunk is written.

Default timeout value is 15 minutes.

The implementation requires no changes in Comm callers but it adds write
timeouts to all connections, including the connections that have
context-specific write timeouts. I think that is fine.
src/cf.data.pre
src/comm.cc
src/fde.h
src/structs.h