Bug: slrn doesn't close network connection

Jörg Sommer <[email protected]> Sun, 19 Dec 2010 13:23:27 +0000 (UTC)
Newsgroups gmane.network.slrn.user
Message-ID <[email protected]>
Hi,

after the server closed the network connection due to inactivity, slrn
doesn't acknowledge this closing.

Here the server closes its half of the network connection:

% tcpdump -r /tmp/slrn.netdump
reading from file /tmp/slrn.netdump, link-type EN10MB (Ethernet)
13:07:45.412603 IP (tos 0x0, ttl 64, id 38470, offset 0, flags [DF], proto TCP (6), length 52)
    server.localnet.nntp > iBook.localnet.50950: Flags [F.], cksum 0x1553 (correct), seq 675297975, ack 3219782635, win 362, options [nop,nop,TS val 170031723 ecr 55603328], length 0
13:07:45.452115 IP (tos 0x0, ttl 64, id 37889, offset 0, flags [DF], proto TCP (6), length 52)
    iBook.localnet.50950 > server.localnet.nntp: Flags [.], cksum 0x817d (incorrect -> 0xed12), ack 1, win 357, options [nop,nop,TS val 56203452 ecr 170031723], length 0

The kernel shows this connection as half closed:

# netstat -tpn
Aktive Internetverbindungen (ohne Server)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        1      0 192.168.0.5:55085       192.168.0.1:119         CLOSE_WAIT  3857/slrn

As you can see, there's one message in the receive queue. But slrn does
nothing.

I suspect slrn hangs anywhere and doesn't poll (select) the network
socket for data. Hence, it doesn't detect the connection was closed from
the remote site.

Does anyone observe this behaviour, too?

% LCC slrn --version
slrn pre1.0.0-18
        * Note: This version is a developer preview.
S-Lang Library Version: 2.2.2
Compiled at: Aug  7 2010 11:41:56
Operating System: Linux

COMPILE TIME OPTIONS:
 Backends: +nntp +slrnpull +spool
 External programs / libs: +canlock +inews +ssl +uudeview +iconv
 Features: +decoding +emphasized_text +end_of_thread +fake_refs +gen_msgid
    -grouplens -msgid_cache +piping +rnlock +spoilers -strict_from
 Using 64 bit integers for article numbers.

DEFAULTS:
 Default server object:     nntp
 Default posting mechanism: nntp

Bye, Jörg.
-- 
Geld allein macht nicht glücklich, aber es ist besser in einem Taxi zu
weinen, als in der Straßenbahn.
	       	   	       			(Marcel Reich‐Ranicki)

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d