stason.org logo lotus


previous page: 5.20. Compiling with Solaris 2.5 fails! (SSH (Secure Shell))page up: SSH - Secure Shell FAQnext page: 5.22. Connections are forwarded as root by ssh!

5.21. Ssh suddenly drops connections!

 Books
 TULARC
















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:
  • digg
  • Reddit
  • del.icio.us
  • Furl
  • Wists

Tags

security, SSH, Secure Shell







TOP
previous page: 5.20. Compiling with Solaris 2.5 fails! (SSH (Secure Shell))page up: SSH - Secure Shell FAQnext page: 5.22. Connections are forwarded as root by ssh!