🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
8 messages
8 total messages Started by Louis-David Mitterrand Mon, 02 Dec 1996 00:00
known bug in slrn?
#28033
Author: Louis-David Mitterrand
Date: Mon, 02 Dec 1996 00:00
19 lines
1025 bytes

Whenever I loose my PPP connection to my ISP while using slrn and then
reconnect (under a different random IP address) slrn (0.9.1.1 on Linux)
hangs forever. I can't even kill the session from the terminal with ^-C.

I have to kill the terminal (rxvt) and then do a kill -9 <pid of slrn>.
A simple kill wont do.

Is this a known bug?

-- 

     Louis-David Mitterrand
     (Formula 1): http://www.zoom.com/mito/
     (Java page): http://www.zoom.com/mito/quote/
     mito@sprynet.com 

Re: known bug in slrn?
#28058
Author: Michael Richardson
Date: Tue, 03 Dec 1996 00:00
20 lines
1513 bytes
On 3 Dec 1996 07:12:55 GMT, Charles Rezk <rezk@math.nwu.edu> wrote:
>>More like an unknown bug.  Sounds like slrn is using the old address
>>instead of the news server name when it reconnects.
>
>I don't understand this.  The address of the news server doesn't
>change.

  The explanation is wrong. SLRN may be keeping that socket, which has
now been bound to the old dynamically assigned address. 
  From looking at clientlib.c, this is not occuring, each connection
attempt should be using a fresh socket. Maybe this is a Linux thing.

-- 
   :!mcr!:            |  Network security consulting and 
   Michael Richardson |      contract programming
 WWW: <A HREF="http://www.sandelman.ottawa.on.ca/People/Michael_Richardson/Bio.html">mcr@sandelman.ottawa.on.ca</A>. PGP key available.


Re: known bug in slrn?
#28061
Author: root
Date: Tue, 03 Dec 1996 00:00
27 lines
1333 bytes
On 2 Dec 1996 14:40:22 GMT, Louis-David Mitterrand <mito@retriever.qc> wrote:
>
>Whenever I loose my PPP connection to my ISP while using slrn and then
>reconnect (under a different random IP address) slrn (0.9.1.1 on Linux)
>hangs forever. I can't even kill the session from the terminal with ^-C.
>
>I have to kill the terminal (rxvt) and then do a kill -9 <pid of slrn>.
>A simple kill wont do.
>
>Is this a known bug?
>
More like an unknown bug.  Sounds like slrn is using the old address
instead of the news server name when it reconnects.

>
>     Louis-David Mitterrand

Que c'est un nom distingue.

-- 
==================================================
Guess what?  I don't read e-mail replies to my
Usenet posts.
==================================================

Re: known bug in slrn?
#28068
Author: Charles Rezk
Date: Tue, 03 Dec 1996 00:00
27 lines
1539 bytes
In article <slrn5a72o5.43.root@tailor.aleim.net>, root wrote:
>On 2 Dec 1996 14:40:22 GMT, Louis-David Mitterrand <mito@retriever.qc> wrote:
>>
>>Whenever I loose my PPP connection to my ISP while using slrn and then
>>reconnect (under a different random IP address) slrn (0.9.1.1 on Linux)
>>hangs forever. I can't even kill the session from the terminal with ^-C.
>>
>>I have to kill the terminal (rxvt) and then do a kill -9 <pid of slrn>.
>>A simple kill wont do.

I have the same problem when I lose my SLIP (dynamic IP) connection (I'm running
slrn 0.8.8.4 on Linux.)  It's my only complaint about this otherwise
nifty program.  

>>Is this a known bug?
>>
>More like an unknown bug.  Sounds like slrn is using the old address
>instead of the news server name when it reconnects.

I don't understand this.  The address of the news server doesn't
change.

-- Charles Rezk


Re: known bug in slrn?
#28075
Author: John E. Davis
Date: Wed, 04 Dec 1996 00:00
18 lines
1244 bytes
On 2 Dec 1996 14:40:22 GMT, Louis-David Mitterrand <mito@retriever.qc>
wrote:
>Whenever I loose my PPP connection to my ISP while using slrn and then
>reconnect (under a different random IP address) slrn (0.9.1.1 on Linux)
>hangs forever. I can't even kill the session from the terminal with ^-C.

If this is repeatable, instead of re-running slrn, simply try:

     telnet YOUR-NEWS-SERVER nntp
     
Does telnet hang?  If not, try running slrn.  Does it hang?     
-- 
John E. Davis                   Center for Space Research/AXAF Science Center
617-258-8119                    MIT 37-662c, Cambridge, MA 02139
http://space.mit.edu/~davis

Re: known bug in slrn?
#28084
Author: Mike Ching
Date: Wed, 04 Dec 1996 00:00
20 lines
1441 bytes
On 3 Dec 1996 23:30:28 GMT, Michael Richardson <mcr@amaterasu.sandelman.ottawa.on.ca> wrote:
>On 3 Dec 1996 07:12:55 GMT, Charles Rezk <rezk@math.nwu.edu> wrote:
>>>More like an unknown bug.  Sounds like slrn is using the old address
>>>instead of the news server name when it reconnects.
>>
>>I don't understand this.  The address of the news server doesn't
>>change.
>
>  The explanation is wrong. SLRN may be keeping that socket, which has
>now been bound to the old dynamically assigned address. 
>  From looking at clientlib.c, this is not occuring, each connection
>attempt should be using a fresh socket. Maybe this is a Linux thing.

No. The OS/2 version does the same thing so it's a slrn thing.

Mike Ching


Re: known bug in slrn?
#28149
Author: John E. Davis
Date: Fri, 06 Dec 1996 00:00
104 lines
3401 bytes
On 2 Dec 1996 14:40:22 GMT, Louis-David Mitterrand <mito@retriever.qc>
wrote:
>Whenever I loose my PPP connection to my ISP while using slrn and then
>reconnect (under a different random IP address) slrn (0.9.1.1 on Linux)
>hangs forever. I can't even kill the session from the terminal with ^-C.

Exactly how do you reconnect?  Do you start a new slrn process?  If
so, I do not see why it should hang.  Please try the following patches
to slrn/src/sltcp.c and slrn/src/sltcp.h.  Also qnote that other
posters have incorrectly assumed that slrn uses slrn/src/clientlib.c
under Unix; clientlib.c is only used by VMS.

The patches follow.  If they solve your problem or create new
problems, please let me know!

% diff -u release/slrn/src/sltcp.c slrn/src/sltcp.c
--- release/slrn/src/sltcp.h	Tue Oct 22 14:08:32 1996
+++ slrn/src/sltcp.h	Fri Dec  6 00:04:56 1996
@@ -6,6 +6,7 @@
 typedef struct 
 {
    int tcp_fd;
+#define SLTCP_EOF_FLAG	0x1
    unsigned int tcp_flags;
    unsigned char *tcp_write_ptr;
    unsigned char *tcp_write_ptr_min;

diff -u release/slrn/src/sltcp.c slrn/src/sltcp.c
--- release/slrn/src/sltcp.c	Tue Oct 22 14:08:32 1996
+++ slrn/src/sltcp.c	Fri Dec  6 00:15:41 1996
@@ -344,14 +344,20 @@
 }
 /*}}}*/
 
-static int do_read (int fd, unsigned char *buf, unsigned int len)
+
+static int do_read (SLTCP_Type *tcp)
 {   
-   int nread;
+   int nread, fd;
    
+   if (tcp->tcp_flags & SLTCP_EOF_FLAG)
+     return -1;
+
+   fd = tcp->tcp_fd;
+
    if (-1 == wait_for_input (fd))
      return -1;
 	
-   while (-1 == (nread = SLTCP_READ (fd, (char *)buf, len)))
+   while (-1 == (nread = SLTCP_READ (fd, (char *)tcp->tcp_read_ptr, SLTCP_BUF_SIZE)))
      {
 	if (errno == EINTR)
 	  {
@@ -362,6 +368,9 @@
 	return -1;
      }
    
+   if (nread == 0)
+     tcp->tcp_flags |= SLTCP_EOF_FLAG;
+	
    return nread;
 }
 
@@ -404,7 +413,7 @@
 	
 	tcp->tcp_read_ptr = tcp->tcp_read_ptr_max = tcp->tcp_read_buf;
 	
-	nread = do_read (fd, tcp->tcp_read_ptr, SLTCP_BUF_SIZE);
+	nread = do_read (tcp);
 	if (-1 == nread)
 	  return total_len;
 
@@ -493,7 +502,7 @@
    
    while (1)
      {
-	unsigned int nread;
+	int nread;
 	
 	r = tcp->tcp_read_ptr;
 	rmax = tcp->tcp_read_ptr_max;
@@ -522,10 +531,9 @@
 	
 	tcp->tcp_read_ptr_max = tcp->tcp_read_ptr = tcp->tcp_read_buf;
 	
-	nread = (unsigned int) do_read (fd, tcp->tcp_read_ptr, SLTCP_BUF_SIZE);
-	if (-1 == (int)nread)
+	if (-1 == (nread = do_read (tcp)))
 	  return -1;
 	
-	tcp->tcp_read_ptr_max += nread;
+	tcp->tcp_read_ptr_max += (unsigned int) nread;
      }
 }


-- 
John E. Davis                   Center for Space Research/AXAF Science Center
617-258-8119                    MIT 37-662c, Cambridge, MA 02139
http://space.mit.edu/~davis

Re: known bug in slrn?
#28320
Author: John E. Davis
Date: Wed, 11 Dec 1996 00:00
25 lines
1418 bytes
On 2 Dec 1996 14:40:22 GMT, Louis-David Mitterrand <mito@retriever.qc>
wrote:
>Whenever I loose my PPP connection to my ISP while using slrn and then
>reconnect (under a different random IP address) slrn (0.9.1.1 on Linux)
>hangs forever. I can't even kill the session from the terminal with ^-C.
>
>I have to kill the terminal (rxvt) and then do a kill -9 <pid of slrn>.
>A simple kill wont do.

The next time this happens, instead of killing it, do:

    strace -p <pid of slrn>
    
I have been unable to reproduce the problem in 0.9.2.

Also, what linux kernel version are you using?  Apparantly some of the
2.0.xx kernels had a problem with signals not being delivered to some
processes.  That is unlikely the to be causing the slrn problem but I
do not want to overlook any possibility.

Thanks,
--John

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads