Description
This article is from the SSH - Secure Shell FAQ, by Thomas Koenig Thomas.Koenig@ciw.uni-karlsruhe.de with numerous contributions by
others.
5.21. Ssh suddenly drops connections!
This is a problem which has been reported by several people for SunOS
4, Solaris 2, Linux, and HP-UX 9 and 10, with 1.2.16 and 1.2.17. It
happens with scp, when transferring large amounts of data via ssh's
stdin, or when forwarding an X connection which receives a large
amount of graphics data (such as a MPEG movie).
Try to apply the following patch to 1.2.16 or 1.2.17 for a fix. This
is in 1.2.18 or later.
--- serverloop.c.orig Tue Jan 21 14:38:25 1997
+++ serverloop.c. Tue Jan 21 14:37:54 1997
@@ -405,7 +405,7 @@
buffer_len(&stdin_buffer));
if (len <= 0)
{
- if (errno != EWOULDBLOCK)
+ if ((errno != EWOULDBLOCK) && (errno != EAGAIN))
{
if (fdin == fdout)
shutdown(fdin, 1); /* We will no longer send. */
 
Continue to:
Share and Enjoy
Bookmark this story so others can enjoy it:
Tags
security, SSH, Secure Shell