home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / aix / 9314 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  2.7 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!wupost!cs.utexas.edu!ut-emx!ibmchs!auschs!awdprime.austin.ibm.com!konopik.austin.ibm.com!konopik
  2. From: konopik@konopik.austin.ibm.com (Brad Konopik)
  3. Newsgroups: comp.unix.aix
  4. Subject: Re: RTS/CTS on the RS6000
  5. Message-ID: <1992Sep2.050437.20149@awdprime.austin.ibm.com>
  6. Date: 2 Sep 92 05:04:37 GMT
  7. References: <BrL162.1pxJ@icsbelf.uucp> <1992Jul18.133420.448@meiko.com>
  8. Sender: news@awdprime.austin.ibm.com (USENET News)
  9. Organization: IBM AIX Porting Center, Austin
  10. Lines: 46
  11.  
  12. In article <1992Jul18.133420.448@meiko.com> philip@meiko.com (Philip Gladstone) writes:
  13. >RTS/CTS:
  14. >    Accroding to IBM you have to put an 'stty add rts' in one of
  15. >the rc.* files to get the rts line discipline. They (support) offered
  16. >to send me a script that would do this to a list of ttys.
  17.  
  18. Yikes !  Don't dare put raw "stty add rts" commands in your rc.* files !
  19. You're machine will hang like a big dog.  Austin's Level 3 TTY support has
  20. a "work-around" that feeds a list of ttys to an "addrts" program which
  21. opens the port with O_NONBLOCK so you won't hang.  You can hook THIS into
  22. your rc.* files.
  23.  
  24. This will have to suffice until someone insists that an APAR be opened to
  25. have this ability from smit (heck, they might have an APAR by now...call
  26. and see).
  27.  
  28. >Two questions for the knowledgeable:
  29. >
  30. >1)    Why is the effect of 'stty add rts' permanenet -- even when
  31. >    done by a user in their .profile to their own tty? Why doesn't
  32. >    login / init / tty subsystem reset on logout/hangup?
  33.  
  34. RTS/CTS handshaking is not something that is in effect every 3rd login
  35. and odd Tuesday !  It's usually something that you want permanent.
  36. Don't blindly do it from a .profile though, get the workaround described
  37. above.
  38.  
  39. >2)    Why is it so bad to do 'stty add rts' to your own tty when
  40. >    logged in over the network (i.e. your tty is a psuedo-tty)?
  41. >Philip
  42.  
  43. I haven't tried it, but this would probably hose flow control.  When
  44. somebody wants to T_BLOCK the pty because input is backing up, the 
  45. T_BLOCK request gets handled by the pacing discipline (aka flow-control
  46. discipline) closest to the hardware (or by the hardware if the hardware
  47. can handle it - ala 64-port).  Instead of an xon/xoff getting sent
  48. across the net, the RTS/CTS discipline tells the pty driver to drop RTS,
  49. which it does (and which does NOTHING to pace incoming data).  DISCLAIMER:
  50. I haven't traced the code, but this is what I'd expect to happen (your
  51. mileage may vary - especially if you use weird stuff like pty packet mode).
  52.  
  53. -- 
  54.   tcpnet: konopik@konopik.austin.ibm.com  |  Brad Konopik
  55.  ibmvnet: KONOPIK at AUSTIN               |  IBM AIX Porting Center, Austin
  56. internet: konopik.austin.ibm.com!konopik@ibmpa.awdpa.ibm.com
  57.    uunet: ..!uunet!ibmsupt!ibmpa!konopik.austin.ibm.com!konopik
  58.