Re: Memory leaks when using sockets

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



OK, I don't see anything wrong with that. You are probably running into a
limitation of the system and will have to find a work-around.

Paul T.

"Albert2" <hxt.nguyen@xxxxxxxxx> wrote in message
news:1134637472.915256.30450@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
>
> More details about my problem : my application connect to a socket
> server using GPRS modem. Due to GPRS limitation there could be many
> random disconnections. When detecting disconnection the application
> perform the following process :
> - Closing sockets
> - Closing RAS
>
> And then :
>
> - Connecting RAS
> - Connecting sockets
>
> BOOL SocketsDisconnect (void)
> {
> int i;
> for (i=0;i < 3;i++)
> {
> if (iSocket[i] != INVALID_SOCKET)
> {
> closesocket(iSocket[i]);
> iSocket[i] = INVALID_SOCKET;
> }
> }
> return TRUE;
> }
>
> Regards
> Albert
>


.



Relevant Pages

  • Re: Tool for testing Concurrent TCP Streams
    ... iperf is a such tool, but limitation may occur at No. of file descriptors, ... sockets, and/or threads, which is most likely the bottleneck. ...
    (freebsd-performance)
  • Re: 5 proposals to enhance network socket classes in .NET
    ... > Using the Socket.Select (BSD style sockets) you're leaving the entire ... > interfaces there is on Windows. ... The IOCP thread pool is excellent at ... Even this limitation ...
    (microsoft.public.dotnet.framework)
  • Re: MAX number of sockets
    ... Read my original reply again - the limitation is for using select, ... not for a maximum number of sockets. ... >states that FD_SET structure contains an array of socket handles and the ... >> In "Network Programming for Microsoft Windows" book Anthony Jones and Jim ...
    (microsoft.public.win32.programmer.networks)
  • Re: Memory leaks when using sockets
    ... server using GPRS modem. ... random disconnections. ... - Connecting RAS ... - Connecting sockets ...
    (microsoft.public.windowsce.embedded.vc)