<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: pty dropping data in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/pty-dropping-data/m-p/4202064#M91497</link>
    <description>Hi (again) Salva:&lt;BR /&gt;&lt;BR /&gt;I see that you notedd, "After some investigation I have found that the operative system drops data when syswrite is called with more than 512 bytes or when consecutive enough syswrites summing up more than 512 bytes are performed."&lt;BR /&gt;&lt;BR /&gt;Given that, it would helpful (at least in debugging) to report the ERRNO (Perl's $!) returned by 'syswrite'.  The meanings are then documented in 'write(2)':&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-60127/write.2.html" target="_blank"&gt;http://docs.hp.com/en/B2355-60127/write.2.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-60130/write.2.html" target="_blank"&gt;http://docs.hp.com/en/B2355-60130/write.2.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Wed, 21 May 2008 15:39:27 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2008-05-21T15:39:27Z</dc:date>
    <item>
      <title>pty dropping data</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pty-dropping-data/m-p/4202058#M91491</link>
      <description>&lt;!--!*#--&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am trying to solve a bug on the perl module Net::SFTP::Foreign (&lt;A href="http://rt.cpan.org/Ticket/Display.html?id=35888)." target="_blank"&gt;http://rt.cpan.org/Ticket/Display.html?id=35888).&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;To handle password authentication, Expect is used under the hood and the interprocess communication goes through a PTY. The module does IO in a select loop and the NONBLOCK fcntl flag is set on the PTY.&lt;BR /&gt;&lt;BR /&gt;I have found that writing more than 512 bytes of data to the PTY causes HP-UX to discard the excess (I have used truss to see what was going on, and I am sure the data is discarded at the OS level!). Performing too many consecutive small write operations have the same effect.&lt;BR /&gt;&lt;BR /&gt;Is there anyway to stop that from happening?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 May 2008 09:24:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pty-dropping-data/m-p/4202058#M91491</guid>
      <dc:creator>Salvador Fandino</dc:creator>
      <dc:date>2008-05-21T09:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: pty dropping data</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pty-dropping-data/m-p/4202059#M91492</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Interesting.  I see that you are actually the maintainer of this module and that the bug was reported to CPAN in the last week.&lt;BR /&gt;&lt;BR /&gt;Moreover, "The same problem occurs on a "put" transfer from an AIX machine.".&lt;BR /&gt;&lt;BR /&gt;For HP-UX it looks like the problem was reported on 11.11 on a PA-RISC platform using a 64-bit Perl 5.8.7.&lt;BR /&gt;&lt;BR /&gt;One avenue to follow might be to make sure that the latest streams patch for 11.11 has been applied:&lt;BR /&gt;&lt;BR /&gt;PHNE_36441&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 May 2008 11:20:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pty-dropping-data/m-p/4202059#M91492</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-05-21T11:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: pty dropping data</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pty-dropping-data/m-p/4202060#M91493</link>
      <description>&lt;!--!*#--&gt;Actually I am using one of the test machines provided by HP for testing at &lt;A href="http://www.testdrive.hp.com/" target="_blank"&gt;http://www.testdrive.hp.com/&lt;/A&gt; :&lt;BR /&gt;&lt;BR /&gt;  $ uname -a&lt;BR /&gt;  HP-UX td191 B.11.31 U 9000/800 3397116299 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;How can I check it PHNE_36441 has been applied?</description>
      <pubDate>Wed, 21 May 2008 12:43:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pty-dropping-data/m-p/4202060#M91493</guid>
      <dc:creator>Salvador Fandino</dc:creator>
      <dc:date>2008-05-21T12:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: pty dropping data</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pty-dropping-data/m-p/4202061#M91494</link>
      <description>Hi (again) Salvador:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; How can I check it PHNE_36441 has been applied?&lt;BR /&gt;&lt;BR /&gt;# swlist PHNE_36441&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 21 May 2008 12:47:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pty-dropping-data/m-p/4202061#M91494</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-05-21T12:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: pty dropping data</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pty-dropping-data/m-p/4202062#M91495</link>
      <description>Hi (again) Salvador:&lt;BR /&gt;&lt;BR /&gt;Oh, I just read your last post more carefully.&lt;BR /&gt;&lt;BR /&gt;Your test machine is NOT the same as the bug-reported machine.&lt;BR /&gt;&lt;BR /&gt;Your test machine is 11.31 whereas the original report was for 11.11.  The patch I suggested does NOT apply to 11.31.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 21 May 2008 12:53:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pty-dropping-data/m-p/4202062#M91495</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-05-21T12:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: pty dropping data</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pty-dropping-data/m-p/4202063#M91496</link>
      <description>&lt;!--!*#--&gt;James,&lt;BR /&gt;&lt;BR /&gt;The tesdrive box I am using with HP-UX 11.31 has PHNE_35897 installed, and the latest STREAMS patch for this version seems to be PHNE_36574, though I don't see any reference to data lost problems in its description.&lt;BR /&gt;&lt;BR /&gt;BTW, I have also posted a similar question on Perlmonks with a sample script showing the problem: &lt;A href="http://perlmonks.org/?node_id=687727" target="_blank"&gt;http://perlmonks.org/?node_id=687727&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Wed, 21 May 2008 13:17:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pty-dropping-data/m-p/4202063#M91496</guid>
      <dc:creator>Salvador Fandino</dc:creator>
      <dc:date>2008-05-21T13:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: pty dropping data</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pty-dropping-data/m-p/4202064#M91497</link>
      <description>Hi (again) Salva:&lt;BR /&gt;&lt;BR /&gt;I see that you notedd, "After some investigation I have found that the operative system drops data when syswrite is called with more than 512 bytes or when consecutive enough syswrites summing up more than 512 bytes are performed."&lt;BR /&gt;&lt;BR /&gt;Given that, it would helpful (at least in debugging) to report the ERRNO (Perl's $!) returned by 'syswrite'.  The meanings are then documented in 'write(2)':&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-60127/write.2.html" target="_blank"&gt;http://docs.hp.com/en/B2355-60127/write.2.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-60130/write.2.html" target="_blank"&gt;http://docs.hp.com/en/B2355-60130/write.2.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 21 May 2008 15:39:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pty-dropping-data/m-p/4202064#M91497</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-05-21T15:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: pty dropping data</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pty-dropping-data/m-p/4202065#M91498</link>
      <description>AFAIK, errno is only updated when there is a failure, otherwise its value is meaningless. In that case syswrite (or write at the OS level) is reporting success, actually it reports that all the data is written to the pipe.&lt;BR /&gt;&lt;BR /&gt;I have include the interesting truss (well, tusc) output on the Perlmonks thread.</description>
      <pubDate>Wed, 21 May 2008 15:59:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pty-dropping-data/m-p/4202065#M91498</guid>
      <dc:creator>Salvador Fandino</dc:creator>
      <dc:date>2008-05-21T15:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: pty dropping data</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pty-dropping-data/m-p/4202066#M91499</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;The bug is so new that you might actually need to wait a few weeks for a fix to come out.&lt;BR /&gt;&lt;BR /&gt;If it was recently introduced, you may be able to download and use a previous version of your CPAN module, but that of course may lead to other problems.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 21 May 2008 16:19:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pty-dropping-data/m-p/4202066#M91499</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2008-05-21T16:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: pty dropping data</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pty-dropping-data/m-p/4202067#M91500</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; AFAIK, errno is only updated when there is a failure&lt;BR /&gt;&lt;BR /&gt;Yes, 'syswrite' returns the number of bytes written or 'undef'.  If 'undef' is returned, then ERRNO is available according to the documentation.  Thus, I see what you are saying.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; SEP: If it was recently introduced, you may be able to download and use a previous version of your CPAN module, but that of course may lead to other problems.&lt;BR /&gt;&lt;BR /&gt;Well, SEP, it just so happens that Salva *is* the maintainer of this module (as I noted in my opening post)!&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 21 May 2008 17:20:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pty-dropping-data/m-p/4202067#M91500</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-05-21T17:20:57Z</dc:date>
    </item>
  </channel>
</rss>

