The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
Google UNIX.COM


IP Networking Questions involving TCP/IP, Routers, Hubs, Network protocols, etc go here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ssh - connection reset by peer osxhawk Shell Programming and Scripting 2 06-05-2008 11:18 AM
XIO: fatal IO error 232 (Connection reset by peer) on X server "192.168.1.239:0.0" grimanda HP-UX 3 01-31-2008 08:33 AM
Need error code: rcp - reset by peer jimcampanella Shell Programming and Scripting 1 06-12-2007 11:54 PM
Something like peer-to-peer !_30 UNIX for Advanced & Expert Users 0 11-19-2006 12:00 PM
Peer to Peer TAT2ME74 UNIX for Dummies Questions & Answers 2 08-27-2002 05:45 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-04-2005
Registered User
 

Join Date: May 2005
Posts: 4
Question connection reset by peer

HI,

We have 2 servers ( win 2003 + sun 5.8 ) and we run a rsh from the NT to the UNIX.

The program runs a shell script on the UNIX and waits for the answer in the EOF.

How ever, after period of appx 2 min there is a reply "Recv failed:Connection reset by peer".

while the shell script is still running on the UNIX but the Connection to the NT is Closed !!

Please Help, What can I do ?
We tried to change in the file /etc/inetd.conf the rsh from NOWAIT to WAIT but no luck.

Thanks in Advance
Reply With Quote
Forum Sponsor
  #2  
Old 07-04-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,656
Put it back to NOWAIT.

Run it again and while it's ok, run "netstat -an" and find the socket for the connection. rshd reads the input for the command until it get EOF. Then it runs the command. So the socket will probably be half-closed and in CLOSE-WAIT. Now let the NT box get that message. Look again in "netstat -an". Did the socket change? If not, the problem is not on the unix system.

A possible cause of "connection reset by peer" is that the NT box is seeing a second box somewhere with the same IP address as the Unix system.
Reply With Quote
  #3  
Old 07-10-2005
Registered User
 

Join Date: May 2005
Posts: 4
Arrow re: connection reset by peer

Well...I put the NOWAIT back and I ran it again.

The Result was that befor the run it was
10.1.26.6.567 10.1.26.131.1022 17520 0 24820 0 TIME_WAIT

while running the result was:
10.1.26.6.568 10.1.26.131.1021 17520 0 24820 0 CLOSE_WAIT

and After was back to TIME_WAIT.

so my gues is that it comes from the unix system.

is there any solution for this problem?
Reply With Quote
  #4  
Old 07-10-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,656
You're showing two different sockets and neither looks like an rsh socket.
Reply With Quote
  #5  
Old 07-11-2005
Registered User
 

Join Date: May 2005
Posts: 4
Arrow connection reset by peer

well, you are right
when we run the rsh with our program its open a several sockets...
but all of then are like the example that I send, I made a mistake with the paste socket but still is the same results.

Is there another idea that you can think about ?
Reply With Quote
  #6  
Old 11-03-2005
Registered User
 

Join Date: Nov 2005
Posts: 1
Hi,

We are having the smae problem and it is definitely windows...
Did you find a solution for this ?
Would appreciate your help.

Thanks
Adi
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 01:40 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