[BUG] tin hangs on reconnection
Urs Janßen <[email protected]> Mon, 14 Apr 2008 00:15:20 +0200
| Newsgroups | gmane.network.tin.devel |
|---|---|
| Organization | tin.org |
| Message-ID | <[email protected]> |
In <[email protected]>, Urs Janßen wrote: > while trying to find a reconnection problem when running with "-n" > (I guess the code doesn't expect a multiline response after automatic > reconnection when issuing the last command, but I'm need to have a > closer look at the code): this is what happens - use a 'trimmed' newsrc with less than PIPELINE_LIMIT (30) groups and a small setting for reread_active_file_secs in your tinrc to reproduce. start tin with -n and enter a group, now stop touching it till the connection times out (server dependant usualy something around 10mins) ... try to continue using tin et voila: #4 0x00002ab32542b109 in fgets () from /lib/libc.so.6 #5 0x0000000000465956 in get_server (string=0x937ec0 ".", size=1532) at ./nntplib.c:875 #6 0x000000000048b83d in tin_read (buffer=0x937ec0 ".", len=1532, fp=0x270f, header=0) at ./read.c:204 #7 0x000000000048bc00 in tin_fgets (fp=0x270f, header=0) at ./read.c:333 #8 0x0000000000467fd1 in get_only_respcode ( message=0x7fff862e3118 " Newsgroups in form \"group high low #flags\".", mlen=512) at ./nntplib.c:1598 #9 0x000000000040835a in read_news_active_file () at ./active.c:623 #10 0x00000000004067ee in resync_active_file () at ./active.c:108 here is the NNTP-log (-D 1) >>> XOVER 492848-494317 <<< 224 data follows nntp_command(XOVER 492848-494317) OK [timeout] >>> LIST ACTIVE de.test >>> LIST ACTIVE uk.test >>> LIST ACTIVE akk.test <<< 503 Timeout after 600 seconds, closing connection. nntp_open() BEGIN nntp_open() news.akk.uni-karlsruhe.de <<< 200 akk.uni-karlsruhe.de InterNetNews NNRP server INN 2.2.3 18-Jul-2000 ready (posting ok). nntp_open() akk.uni-karlsruhe.de InterNetNews NNRP server INN 2.2.3 18-Jul-2000 ready (posting ok). new_nntp_command(CAPABILITIES) >>> CAPABILITIES <<< 500 What? new_nntp_command(CAPABILITIES) NOT_OK - Expected: 101, got: 500 ### NNTP EXTENSIONS/CAPABILITIES ### Implementation: ### Type/Version : 0/0 ### Command-names : XOVER ### List : mode_reader() MODE READER >>> MODE READER <<< 200 akk.uni-karlsruhe.de InterNetNews NNRP server INN 2.2.3 18-Jul-2000 ready (posting ok). new_nntp_command(XOVER) >>> XOVER <<< 412 Not in a newsgroup new_nntp_command(XOVER) OK >>> LIST ACTIVE akk.test <<< 215 list: <<< akk.test 4154 4147 y and now we're stuck. another problem ith the code is that we only resend the last cmd but if running with -n we would need to resend all LIST ACTIVE cmds. any willing to look into this (this might be a general reconnection problem as I also noticed reconnection problems without "-n"). urs -- Jef Poskanzer: "When people aren't stupid Usenet is even more useful. Too bad this happens so rarely."