Thread View: news.software.nn
5 messages
5 total messages
Started by Andrew H. Marrinson
Mon, 29 Oct 1990 19:45
Interactive rlogin problem with nn
Author: Andrew H. Marrinson
Date: Mon, 29 Oct 1990 19:45
Date: Mon, 29 Oct 1990 19:45
40 lines
2563 bytes
2563 bytes
Hello, I am having a very strange problem trying to use nn across an rlogin session under Interactive Systems release 2.0.2. I have nn version 6.4.9. The problem is that whenever I run nn while logged in from another machine via rlogin some output disappears. The problem only occurs when both client and server rlogin are ISC's. The problem goes away when either client or server (or both) are (e.g.) SCO ODT. The problem also does not occur with telnet (including ISC's). It does seem to occur with ISC's new 2.2 Unix (at least as a client). The strange thing is it only happens with nn! No other program does this including rn, emacs, vi, etc. Further investigation with a network analyzer shows that the missing data is always the contents of a packet with the urgent pointer set. The urgent pointer points to the last byte of the packet which contains the value 03H. I have looked at the latest rlogind source, and as far as I can tell, this might happen when input and output are being flushed. Unfortunately, I can't figure out where nn might be doing this. A quick check of term.c shows an ioctl to flush the input, but a quick test program that does that doesn't reproduce the behavior. At this point I am not so much looking for a fix, I'd be happy to find someone who has had similar problems with nn or another program. Also, anyone who has any idea under what circumstances ISC's rlogind would send OOB data as described above would be helpful. The rlogind source I have is almost certainly newer than what ISC based their port on, so it only gives me an idea of what might be happening. This is a real drag. Any help at all would be appreciated. Thanks in advance. -- Andrew H. Marrinson Icom Systems, Inc. Wheeling, IL, USA (andy@icom.icom.com)
Interactive rlogin problem with nn SOLVED (w/diff)
Author: Andrew H. Marrinson
Date: Tue, 30 Oct 1990 00:18
Date: Tue, 30 Oct 1990 00:18
42 lines
2267 bytes
2267 bytes
Wow, I found what was happening! The problem was that when doing the ioctl to set the terminal mode to and from raw mode nn was using TCSETAF, which means set parameters and flush. Evidently, if this happened with a partially complete packet still to be sent, that packet would be flushed using the urgent pointer as described in my previous posting. This led to the missing data. The fix was to use TCSETAW instead. I will file a proper bug report with context diff to nn-bugs. For those who want to fix it now, here's the change to term.c, but note that it is not an official patch. This bug potentially affects all Unix systems with termio, but is likely to appear only with certain networking programs (e.g. ISC's rlogin) or very slow communication lines. *** term.c Mon Oct 29 17:05:08 1990 --- term.c.old Mon Oct 29 17:39:54 1990 *************** *** 670,677 **** static int is_raw = 0; #ifdef HAVE_TERMIO ! #define RAW_MODE_ON ioctl(0, TCSETAW, &raw_tty) ! #define RAW_MODE_OFF ioctl(0, TCSETAW, &norm_tty) #else #define RAW_MODE_ON ioctl(0, TIOCSETP, &raw_tty) #define RAW_MODE_OFF ioctl(0, TIOCSETP, &norm_tty) --- 670,677 ---- static int is_raw = 0; #ifdef HAVE_TERMIO ! #define RAW_MODE_ON ioctl(0, TCSETAF, &raw_tty) ! #define RAW_MODE_OFF ioctl(0, TCSETAF, &norm_tty) #else #define RAW_MODE_ON ioctl(0, TIOCSETP, &raw_tty) #define RAW_MODE_OFF ioctl(0, TIOCSETP, &norm_tty) -- Andrew H. Marrinson Icom Systems, Inc. Wheeling, IL, USA (andy@icom.icom.com)
Re: Interactive rlogin problem with nn SOLVED (w/diff)
Author: Jaap Vermeulen
Date: Tue, 30 Oct 1990 05:36
Date: Tue, 30 Oct 1990 05:36
23 lines
1756 bytes
1756 bytes
andy@xwkg.Icom.Com (Andrew H. Marrinson) writes: >Wow, I found what was happening! The problem was that when doing the >ioctl to set the terminal mode to and from raw mode nn was using TCSETAF, >which means set parameters and flush. Evidently, if this happened with >a partially complete packet still to be sent, that packet would be >flushed using the urgent pointer as described in my previous posting. >This led to the missing data. Good work! I know that several people were running into this problem. The initial culprit was thought to be the XON/XOFF settings of the line somewhere (at least that is what I understood). If you're ever in Portland, I'll buy you lunch :-) -Jaap- -- Jaap Vermeulen +--------------------------+ | Sequent Computer Systems | Internet : jaap@sequent.com | Beaverton, Oregon | Uucp : ...uunet!sequent!jaap +--------------------------+
Re: Interactive rlogin problem with nn
Author: Ian Donaldson
Date: Tue, 30 Oct 1990 23:18
Date: Tue, 30 Oct 1990 23:18
29 lines
1953 bytes
1953 bytes
In article <andy.657229514@xwkg>, andy@xwkg.Icom.Com (Andrew H. Marrinson) writes: > The problem is that whenever I run nn while logged in from another machine > via rlogin some output disappears. The problem only occurs when both > client and server rlogin are ISC's. The problem goes away when either > client or server (or both) are (e.g.) SCO ODT. The problem also does > not occur with telnet (including ISC's). It does seem to occur with > ISC's new 2.2 Unix (at least as a client). > > The strange thing is it only happens with nn! No other program does > this including rn, emacs, vi, etc. I have seen this problem many times on many variants of OS including SUNOS 3.5 SUNOS 4.0.3 SVR3.2/i386 + Lachmann TCP using both telnet and rlogin, using nn 6.3.10. It has been around for a long time (at least since nn 6.3.5) and the usual workaround is to hit ^L a few times until you see all the selections in the menu. However the number of times it occurs is very low, maybe once per nn session covering about 30 news groups. Your followup seems to indicate that it is System-V termio specific, but I beleive it isn't restricted to termio TCSETAF, as I've observed it with BSD-environment compiled nn's too (SUNOS). Ian D
Re: Interactive rlogin problem with nn SOLVED (w/diff)
Author: Pim Zandbergen
Date: Wed, 31 Oct 1990 23:15
Date: Wed, 31 Oct 1990 23:15
14 lines
1298 bytes
1298 bytes
andy@xwkg.Icom.Com (Andrew H. Marrinson) writes: >The fix was to use TCSETAW instead. I solved this problem without changing the source by specifying "unset flow-control" in the init file. This works both on "normal" and rlogin sessions and does not unset XON/XOFF or anything. -- Pim Zandbergen domain : pim@cti-software.nl CTI Software BV uucp : uunet!mcsun!hp4nl!ctisbv!pim Laan Copes van Cattenburch 70 phone : +31 70 3542302 2585 GD The Hague, The Netherlands fax : +31 70 3512837
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