Boost logo

Boost Users :

Subject: [Boost-users] [asio] no error or exception sent ?
From: Mathieu Peyréga (mathieu.peyrega_at_[hidden])
Date: 2009-10-01 08:35:19


Hello,

i'm using a tcp socket from asio 1.40 framework and i have the following
behaviour :

i establish a connection to a server and start receiving data

i now want my software to be robust to server deconnexion/reset so i
simulate it by shuting down the server equipment (which is an external
hardware equipement)

i would expect such operation to interrupt any pending async_read_some
operation with an error code, but it doesn't

is there some way to have the expected behaviour ?

regards,

Mathieu


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