Network freezes up

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: SockMeister (SockMeister_at_discussions.microsoft.com)
Date: 02/14/05


Date: Mon, 14 Feb 2005 08:17:04 -0800

Hello Everyone,

/////////////////////////////////////////////////////////////////////
PROBLEM: Network freezes up.

Over varying amounts of time (2 days up to 3 weeks)
the network on the server side freezes up. All network communication
is lost - can't even ping the box anymore. The app is still runing ok
except for the socket links. Client side machine ok.
Reboot the server machine cures the problem for a while.

/////////////////////////////////////////////////////////////////////
SYSTEM INFO:

NT 4.0 SP6 machines
PIII 850 MHz 256 MB RAM

/////////////////////////////////////////////////////////////////////
APP INFO:

Winsock 2 Client/Server model using TCP/IP.
We control both ends of the connection with both
server and client written in C++. We use our own
socket classes, not based on MFC.

Compiler: Microsoft Visual C++ 6.0 SP5.

Use nonblocking sockets and WSAEventSelect() for
asynchronous notification of network events.

Max of 6 simultaneous sockets connections active at one time.

Server side creates one listen socket which exists for
the life of the app.

Client side connects and disconnects many times for data
transfers. Socket session durations vary and range from
30 seconds to 60 minutes with the average duration at
about 3 minutes.

Client and server machines are connected by a local network
inside the building, no outside internet connection.

/////////////////////////////////////////////////////////////////////
ANALYSIS SO FAR:

- Code reviews to verify that sockets are properly opened and closed, etc.
All appears ok here.

- Review the Windows Sockets 2 API Specification, Revision 2.2.2,
August 7, 1997 Appendix C, "The Lame List". No problems here.

- Runtime resource leak checks using BoundsChecker (through Visual Studio).
No resource leaks are reported in the socket area although there are
some other leaks due to our own leagacy code as well as a residue of
NT leaks.

/////////////////////////////////////////////////////////////////////
WINSOCK FORUMS VISITED:

- http://www.codeguru.com/forum

- http://www.vbip.com/forum

- http://www.msdn.microsoft.com/newsgroups

Has anyone encountered this, or a similar problem?

Any ideas or insight would be greatly appreciated.

Regards,

-- 
SockMeister


Relevant Pages

  • RE: Printing from Win9x clients stops
    ... Open Server Management. ... then right-click the name of the computer running Windows Small Business ... >From the client computer: ... The Select Network Component Type ...
    (microsoft.public.windows.server.sbs)
  • RE: Printing from Win9x clients stops
    ... The printers with 9x drivers on the server appeared automatically in the ... > then right-click the name of the computer running Windows Small Business ... > From the client computer: ... The Select Network Component Type ...
    (microsoft.public.windows.server.sbs)
  • Re: Daily Server Report (Critical Errors, Event ID: 537)
    ... Does this issue happen on client workstation or server? ... Does your server and all clients' workstation work well now? ... issue in your Network? ...
    (microsoft.public.windows.server.sbs)
  • Re: Socket switch delay
    ... both at the client and at the server (and why ... would you set the send buffer size to zero on a non-overlapped ... One glaring error is your client does ... So when you use a single socket, ...
    (microsoft.public.win32.programmer.networks)
  • Re: Small business thinking about backing up data, having a server and 2-3 users - is SBS200
    ... is networked to the Master with a crossover network cable. ... Master on the Master PC and Client on the Slave pc. ... Since this machine is a server is should handle the requests ok ... Most real firewall appliances have HTTP and SMTP proxy services that allow ...
    (microsoft.public.windows.server.sbs)