Re: SOCKET_ERROR [10054]
- From: "fniles" <fniles@xxxxxxxxxx>
- Date: Sun, 28 Dec 2008 17:38:27 -0600
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
.
- References:
- SOCKET_ERROR [10054]
- From: fniles
- Re: SOCKET_ERROR [10054]
- From: expvb
- SOCKET_ERROR [10054]
- Prev by Date: Re: CreateWindowEx() fails while creating "Shell_TrayWnd"
- Next by Date: Zoom applet
- Previous by thread: Re: SOCKET_ERROR [10054]
- Next by thread: Value violates the MaxLength - from combo box
- Index(es):
Relevant Pages
|