Re: Socket code returns WSAENOBUFS

Discussion in 'C++' started by Christopher, Sep 2, 2003.

  1. Christopher

    Christopher Guest

    "Steve" <> wrote in message
    news:...
    > Hello --
    >
    > I have an ATL 3.0 COM object being called by ASP on a Windows 2K (SP3)
    > machine.
    >
    > In the code, I make a socket connection to another server on our
    > network. It seems that the sockets are remaining in CLOSE_WAIT status
    > forever -- at least this is what netstat is telling me.
    >
    > After around 4000 users or so, there are no more sockets -- obviously
    > -- and I get the WSAENOBUFS error returned to me when I make a
    > connection.
    >
    > In the class' destructor, I make the call to WSACleanup(), which
    > according to the docs, should take care of everything for me.
    >
    > DragonLink::~DragonLink()
    > {
    > //Clean up regardless of errors
    > WSACleanup();
    > }
    >
    >
    > This should be called regardless when the COM object goes out of scope
    > of the web page, but the sockets linger in CLOSE_WAIT. Any ideas on
    > how I can completely kill the socket? I've been having to reboot
    > several times a day when the server takes a lot of traffic.
    >
    > Thanks -


    Sockets is not a part of the standard C++ language. Perhaps
    alt.winsock.programming can help you out.
    ,
    Christopher
    Christopher, Sep 2, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Laszlo Nagy
    Replies:
    1
    Views:
    4,808
    Mark Wooding
    Jan 27, 2009
  2. Jean-Paul Calderone
    Replies:
    0
    Views:
    960
    Jean-Paul Calderone
    Jan 27, 2009
  3. Laszlo Nagy
    Replies:
    0
    Views:
    542
    Laszlo Nagy
    Feb 1, 2009
  4. Steve Holden
    Replies:
    0
    Views:
    657
    Steve Holden
    Feb 1, 2009
  5. Steve Holden
    Replies:
    1
    Views:
    714
Loading...

Share This Page