Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* Digital UNIX 4.0B and 3.2G pty STREAMS differences
@ 1998-03-20  5:00 Mark J Hewitt
  0 siblings, 0 replies; 2+ messages in thread
From: Mark J Hewitt @ 1998-03-20  5:00 UTC (permalink / raw)



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?



^ permalink raw reply	[flat|nested] 2+ messages in thread
* Digital UNIX 4.0B and 3.2G pty STREAMS differences
@ 1998-03-20  5:00 Mark J Hewitt
  0 siblings, 0 replies; 2+ messages in thread
From: Mark J Hewitt @ 1998-03-20  5:00 UTC (permalink / raw)



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?



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-03-20  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-03-20  5:00 Digital UNIX 4.0B and 3.2G pty STREAMS differences Mark J Hewitt
  -- strict thread matches above, loose matches on Subject: below --
1998-03-20  5:00 Mark J Hewitt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox