Boost logo

Boost Users :

Subject: [Boost-users] Why cannot asio tcp socket server detect TCP disconnection when the client device lost power?
From: jupiter (jupiter.hce_at_[hidden])
Date: 2017-06-29 04:28:53


The asio tcp server can detect the disconnection when the client program
stop. But I have small device when it lost power, the server won't be able
to detect the TCP disconnection. Does the boost socket has TCP timeout?
What is an effective way to handle this situation other than running
heartbeat in user level?

Thank you.

Kind regards,

- j

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at