The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

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 02:18 PM
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 11:33 AM
Need error code: rcp - reset by peer jimcampanella Shell Programming and Scripting 1 06-13-2007 02:54 AM
Something like peer-to-peer !_30 UNIX for Advanced & Expert Users 0 11-19-2006 03:00 PM
Peer to Peer TAT2ME74 UNIX for Dummies Questions & Answers 2 08-27-2002 08:45 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-04-2005
eyalush eyalush is offline
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
  #2 (permalink)  
Old 07-04-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
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.
  #3 (permalink)  
Old 07-10-2005
eyalush eyalush is offline
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?
  #4 (permalink)  
Old 07-10-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
You're showing two different sockets and neither looks like an rsh socket.
  #5 (permalink)  
Old 07-11-2005
eyalush eyalush is offline
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 ?
  #6 (permalink)  
Old 11-03-2005
akatz akatz is offline
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
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:12 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0