The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
C Question compilation error jaganreddy High Level Programming 1 05-12-2008 07:05 AM
basic question about error report in AIX karthikosu UNIX for Dummies Questions & Answers 0 09-25-2006 08:26 AM
Newb scripting question, I get the error script not found Arkitech Shell Programming and Scripting 3 05-04-2006 07:55 AM
Question about error reporting wazzag Shell Programming and Scripting 2 08-25-2003 06:30 AM
Error Question djatwork UNIX for Dummies Questions & Answers 4 10-04-2001 02:47 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 04-25-2002
Registered User
 

Join Date: Feb 2002
Location: Kansas City, MO
Posts: 8
Angry Question about error

While attempting to use ftp to retrieve a file from a remote server (running SCO Unix 5.0.2), it eventually returns a timeout error with the following message - netin: connection reset by peer.

I can't find any reference to this error. Has anyone encountered it before, or know what causes it?
Forum Sponsor
  #2  
Old 04-25-2002
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
The peer sent a reset packet. This might happen if it rebooted. Once it comes back up it won't remember the connection. So when your box tries to continue the conversation, the remote box just aborts the connection.

Another cause that I have have seen is when some other box takes the same ip address. You can test that by shutting down the remote sever and trying trying to ping it.
  #3  
Old 04-25-2002
Registered User
 

Join Date: Feb 2002
Location: Kansas City, MO
Posts: 8
Perderado, your thoughts on my problem make sense, but when tested, were not the cause.

Both servers stayed up during the ftp process, as verified with the who -b command. I then had the remote site power down their server and attempted to ping their IP address, no success - as should be the case.

I know this is outside the scope of Unix, but could it be a timing issue with their router / ISP / phone lines?
  #4  
Old 04-26-2002
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
It is possible for an application program to abort a coonection. It must set the SO_LINGER bit on and set the linger time to zero, then close(2) (as opposed to shutdown(2)) the socket. Actually, an explicit close call is not required, the automatic close that occurs when the process exits will do. And the process can exit either due to an explicit exit(2) or the default action of an uncaught signal.

Putting that all together, some programmers turn on SO_LINGER after establishing the connection. Then if the program aborts, so does the socket. This gives the remote end a clue that something went very wrong.

You can see if the ftpd on the remote system behaves this way. Establish a connection, and then have the remote sysadmin "kill -9" the appropriate instance of ftpd. If you get the "reset by peer" message, then this is a possibility. There may be a bug on the remote ftpd which is causing it to abort.

There could also be a bug in the remote kernel which is causing the abort.

Since this seems to be a WAN issue you need to examine your network topology. It is very likely that your peer in this case in not the remote system. It could be a firewall, for instance. In fact, you could have two firewalls and a proxy server daisy chained betwen you and the remote ftp server. If so, the abort could be coming from any of them.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:20 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0