Problem with server side connections

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sun, 6 Jul 2003 10:52:06 +0200

Hi,

There obviously is a problem with the close of server-side
connections, most visible on non-persistent connections. For some
reason there is a long delay between comm_read detecting the close to
this being signalled back.

A debug trace of the event (time extended to msec):

2003/07/06 10:45:42.828| store_client::doCopy: Waiting for more
2003/07/06 10:45:42.828| cbdataUnlock: 0x852e3e0=0
/home/henrik/SRC/squid/commit/src/store_client.cc:332
2003/07/06 10:45:42.828| comm_poll: 1+0 FDs ready
2003/07/06 10:45:42.828| comm_poll: FD 13 ready for reading
2003/07/06 10:45:42.829| comm_read_try: fd 13, size 87379, retval 0,
errno 0
2003/07/06 10:45:42.829| cbdataLock: 0x4086a030=5
/home/henrik/SRC/squid/commit/src/CommRead.h:63
2003/07/06 10:45:42.829| cbdataLock: 0x4086a030=6
/home/henrik/SRC/squid/commit/src/CommRead.h:63
2003/07/06 10:45:42.829| cbdataUnlock: 0x4086a030=5
/home/henrik/SRC/squid/commit/src/CommRead.h:71
2003/07/06 10:45:43.404| comm_poll: 0+0 FDs ready
2003/07/06 10:45:43.405| comm_poll: time out: 1057481143.
2003/07/06 10:45:43.405| eventRun: RUN ID 40
2003/07/06 10:45:43.405| eventRun: Running 'MaintainSwapSpace', id 38
2003/07/06 10:45:43.405| storeMaintainSwapSpace: f=0.000000,
max_scan=100, max_remove=10
2003/07/06 10:45:43.405| cbdataAlloc: 0x85086e8
/home/henrik/SRC/squid/commit/src/repl/lru/store_repl_lru.cc:280
2003/07/06 10:45:43.405| cbdataFree: 0x85086e8
/home/henrik/SRC/squid/commit/src/repl/lru/store_repl_lru.cc:270
2003/07/06 10:45:43.405| cbdataFree: Freeing 0x85086e8
2003/07/06 10:45:43.405| UFSSwapDir::maintainfs: /tmp/squid/cache
removed 0/10 f=0.000 max_scan=100
2003/07/06 10:45:43.405| eventAdd: Adding 'MaintainSwapSpace', in
1.000000 seconds
2003/07/06 10:45:43.405| httpReadReply: FD 13: len 0.
2003/07/06 10:45:43.406| fwdComplete: http://www.sunet.se/

As you can see httpReadReply is not called until much later.

Regards
Henrik
Received on Sun Jul 06 2003 - 02:52:28 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:20:15 MST