[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Socket 10054 error - not your normal issue - development problem - from the server but why?

Posted on 2005-04-28
3
Medium Priority
?
611 Views
Last Modified: 2011-09-20
Greetings.  Things are getting testy in my development lab, and I need some ideas as to how to defuse a situation that's developed.  Our environment is mainly Windows Sockets talking to an embedded device we currently have under development.  The device has an embedded DHCP server within it, and supports a dedicated ethernet communications network for the application.

One of our tools uses winsock to communicate with the device.  Usually, things work fine, but at times, the socket connection fails with a 10054 error - connection reset by peer.

It is my understanding that this error is initiated by the server (server in this context is the application accepting socket connections - our device).  True or False?

Now, I know y'all can't help me with the application, and I'm treating the code in the device as a black box.  I've never written an extensive server application, but what examples I've seen, I've not noticed a specific command that generates a 10054 error.  Is this down inside the stack and something that just happens?  What would I do if I were a server and wanted to generate a 10054 error?

I appreciate any feedback.  
0
Comment
Question by:charles_gilley
2 Comments
 
LVL 21

Accepted Solution

by:
marc_nivens earned 1500 total points
ID: 13891741
I'll say this tongue in cheak because I'm not an expert in this area.  But, here are what I believe the answers to your questions are.

1)  True.  The text for this error is sometimes represented as "An existing connection was forcibly closed by the remote host"
2)  The 10054 error (WSAECONNRESET) would most likely be implemented as an HResult from a call to the Winsock subsystem.  The error is actually defined in both winerror.h and winsock2.h.  I would imagine that since you're just utilizing the winsock subsystem with your code that the more likely scenario would be the error is returned to your code and you do what you need to with it.  I guess you could return this error yourself, but its probably something better left to winsock.
0
 

Author Comment

by:charles_gilley
ID: 14056333
Hello - learned one - I was hoping for more feedback, but it appears none is forthcoming.

FWIW, this error *appears* to occur from within the stack on either end of the connection.
I draw this somewhat dubious conclusion based on continued testing of our application under
various conditions - cable connected, disconnected, etc.  From the server side, things have changed,
and we're not sure what, moderating the error occurrence significantly.  Very flakey update I know.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We recently endured a series of broadcast storms that caused our ISP to shut us down for brief periods of time. After going through a multitude of tests, we determined that the issue was related to Intel NIC drivers on some new HP desktop computers …
This is the first one of a series of articles I’ll be writing to address technical issues that are always referred to as network problems. The network boundaries have changed, therefore having an understanding of how each piece in the network  puzzl…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question