Re: SOCKET_ERROR [10054]

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thank you for all replies.

The VB.NET program is the client program that connects to the C++ program
using SocketWrench .net component (a socket component).
Each of one the 6 VB.NET programs are connected to C++ program on different
servers with different IPs.
I will ask our network administrator if we implement NAT.

According to MS website, it says socket error 10054 occurs when "An existing
connection was forcibly closed by the remote host. This normally results if
the peer application on the remote host is suddenly stopped, the host is
rebooted, the host or remote network interface is disabled, or the remote
host uses a hard close (see setsockopt for more information on the SO_LINGER
option on the remote socket). This error may also result if a connection was
broken due to keep-alive activity detecting a failure while one or more
operations are in progress."

So, does it it mean that the C++ program (the server program) forcibly
closed the connection to the VB.NET program (the client program) ?


"expvb" <nobody@xxxxxxx> wrote in message
news:uO$IJLNaJHA.5340@xxxxxxxxxxxxxxxxxxxxxxx
"fniles" <fniles@xxxxxxxxxx> wrote in message
news:u7Ega85ZJHA.1352@xxxxxxxxxxxxxxxxxxxxxxx
We are using VB.NET 2005 and a 3rd party Socket .net component
(socketwrench) to send messages to another program. This other program is
written in C++ 6.0.
There are 6 of this VB.NET programs and 6 of the C++ programs running on
6 different servers

We had the same problem last week and this week where around the same
time all 6 programs could not send messages to each other.
All 6 of the C++ programs got the error message "Socket Error [10054]"
when receiving from or sending a message to the VB.NET programs.
All the VB.NET program still think that it is connected to the C++
programs, and when it sends a message to the C++ program it did not get
any error message, as if the connection to the C++ program still good.
What can cause this "Socket Error [10054]" error around the same time for
all 6 connections ?
Thank you.

How the TCP/IP connections are made? If it's to a single TCP/IP server
process, and that process crashed, or terminated by Task Manager, the
other side gets that error.

Another reason if you have a router between Client/Server that implements
NAT(To share the same IP), and it was reset or crashed, but I am not sure
if you get the same error code, or different one. Routers that implement
NAT have to maintain internal tables that are lost when rebooted. Regular
routers(on the Internet) don't have such tables so connections are not
terminated when a router is reset if it came back up quickly enough, or
another route was taken before a timeout.

http://en.wikipedia.org/wiki/Network_Address_Translation




.



Relevant Pages

  • RE: Remote Desktop/Term. Serv information leakage
    ... connection settings for your given connection, ... ability to have your hard drive mapped on the remote host. ... They asked us to test if the isolated network was adequately ...
    (Pen-Test)
  • [TCL] Help with socket -server operations
    ... write a script that must open a socket and listen for a connection ... actions on that host for me. ...
    (comp.lang.tcl)
  • Re: How to tell when a socket is closed on the other end?
    ... remote server is behaving properly by closing a socket from the server side ... preferably determine if it was closed from the remote end as expected. ... All you know is that the connection did indeed get shut down. ... The SMTP user-level protocol sent "221 Bye", then, my telnet client saw the ...
    (comp.lang.python)
  • RE: PCanywhere: security of it and operation over DSL/cable modems
    ... I have had PC Anywhere running over a VPN connection quite happily. ... However I have setup laptops for remote support running PC Anywhere before, ... By giving both the host and remote PC Anywhere packages the ... have any better encryption on the communication link then definitely use it. ...
    (Security-Basics)
  • RMI & connection refused
    ... I'm suffering from the the common "java.rmi.ConnectException: Connection ... refused to host" problem. ... same host, but as soon as the client moves to a remote location, all the ... Registry r = LocateRegistry.getRegistry; ...
    (comp.lang.java.programmer)