Boost logo

Boost Users :

Subject: Re: [Boost-users] [Asio]What's the behavior of socket.async_write()after socket.close() is called?
From: Igor R (boost.lists_at_[hidden])
Date: 2010-06-07 07:03:14


> It seems to me. If you call close you want the socket released. That a
> zombie socket remains is a design problem. Zombie objects should be avoided.

Why is it more zombie, than a fresh "unopened" socket?

> Also, the destructor guarantees to cancel any pending asynchronous operation AFAIK.

As far as I can see, it doesn't.
shutdown() does.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net