mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Rukletsov <>
Subject Review Request 61664: Libprocess: Added a timeout for send socket operation.
Date Tue, 15 Aug 2017 15:45:50 GMT

This is an automatically generated e-mail. To reply, visit:

Review request for mesos, Benno Evers, Benjamin Mahler, Jie Yu, and Vinod Kone.

Bugs: MESOS-7748

Repository: mesos


Prior to this patch, a send socket operation can wait forever for
a send to complete. Clients that drop connections or stop reading
incoming data, aka "slow reader" attack, can eventually exhaust the
resources of a libprocess-based application and cause denial of
service or an OOM event.

This patch introduces an obligatory timeout for all send socket
operations, after which the stalled connection is dropped. The
timeout can be adjusted via the `LIBPROCESS_SOCKET_SEND_TIMEOUT`
environment variable.


  3rdparty/libprocess/src/process.cpp dcd9c6738816764aae066fe56cd5f468c98fc9bd 



Manual testing with a rogue client.


Alexander Rukletsov

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message