From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,5d7d51eb7ae40adb X-Google-Attributes: gidf678f,public X-Google-Thread: fee84,5d7d51eb7ae40adb X-Google-Attributes: gidfee84,public From: Mark J Hewitt Subject: Digital UNIX 4.0B and 3.2G pty STREAMS differences Date: 1998/03/20 Message-ID: <3512953B.83A5DE03@cyrano.com>#1/1 X-Deja-AN: 335983028 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-NNTP-Posting-Host: psldev.demon.co.uk [158.152.145.235] Content-Type: text/plain; charset=us-ascii Organization: Cyrano (UK) Ltd Newsgroups: comp.unix.osf.misc,comp.unix.osf.osf1 I have an application that depends upon STREAMS modules. It works fine on Digital UNIX 3.2G but appears to loose characters on 4.0B. The simplified architecture is thus: A driving program talks to an application via a pty. A module is pushed on the slave (application) STREAM to intercept some protocol messsages. That module sends these messages to another module pushed on the master pty STREAM where they appear as if passed up from the pty driver. This second module on the master pty STREAM packetises the protocol message and passes it to the driving application. This contortion is necessary because on Digital UNIX (unlike Solaris, but similar to HP-UX 10.20, for example) the pty driver will not pass protocol messages itself. What happens is that 247 (!) characters are transferred from the driving application to the slave application, each handshaked with the protocol messages, before a character written by the driving program just disappears. That is, the write() om the master pty succeeds, but the application on the slave pty does not receive it. So what I am wondering is, has the STREAMS scheduling changed in 4.0b in a way that might cause this effect?