OpenSSH and non-blocking mode

Alexander Taler dissent at cvshome.org
Wed Jul 13 13:39:16 EST 2005


  Larry> 	$ cat bigfile | wc -c
  Larry> 	 10858893
  Larry> 	$ (ssh localhost sleep 120& sleep 3; cat bigfile) | wc -c
  Larry> 	cat: stdout: Resource temporarily unavailable
  Larry> 	  270336

  Damien> What platform are you using? This works fine on OpenBSD and Solaris.
  Damien> You could be running into a kernel bug.

For the record, I can reproduce this problem intermittently on
OpenBSD:

    fire $ uname -a
    OpenBSD fire.0--0.org 3.6 GENERIC#304 sparc64
    fire $ cat INBOX | wc -c
     4106962 
    fire $ (ssh localhost sleep 120& sleep 3; cat INBOX) | wc -c 
     4106962 
    fire $ (ssh localhost sleep 120& sleep 3; cat INBOX) | wc -c
    cat: stdout: Resource temporarily unavailable
      655360 

Alex

-- 
https://savannah.gnu.org/projects/libcvs-spec    Access CVS through a library.
PGP:  ID: 0x23DC453B  FPR: 42D0 66C2 9FF8 553A 373A  B819 4C34 93BA 23DC 453B
The pimp's trade must be carried out by intelligent people, is essential to any
well-ordered society, and should have an official inspector.  -- Don Quixote




More information about the openssh-unix-dev mailing list