shill: prevent crashes in cases where remote breaks connection |
|||||||
Issue descriptionCurrently, when e.g. RTNL handlers in shill call into Sockets::Send and Sockets::SendTo, we don't pass any flags. This means that if we try to write bytes to a connection that the other end has broken, we're going to eat SIGPIPE and then shill will abort. We would rather just return an error and log the EPIPE since remote actors shouldn't be able to crash the shill process.
,
Nov 29 2016
I think RTNL is a bad example. Shill actually has sockets open that are connected to network services, it's arguably bad if the peer could crash shill by closing the connection at the wrong time.
,
Nov 29 2016
Ah, you're right. This does also happen in a VPN driver, though.
,
Dec 5 2016
CL landed: https://chromium-review.googlesource.com/c/414211/ Marking fixed.
,
Mar 4 2017
,
Apr 17 2017
,
May 30 2017
,
Aug 1 2017
,
Oct 14 2017
|
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by kirtika@chromium.org
, Nov 29 2016