Increase backlog for listening sockets 38/206138/1
authorDariusz Michaluk <d.michaluk@samsung.com>
Tue, 14 May 2019 13:53:58 +0000 (15:53 +0200)
committerDariusz Michaluk <d.michaluk@samsung.com>
Tue, 14 May 2019 13:53:58 +0000 (15:53 +0200)
commitf28d202efe7074c3d8334c8e577a55b0191e8810
tree9b399e782e1b6db4b29ff71e49b1d685d258f23f
parenta9844c2ed624b961164fa1e04ee9691c1c43d895
Increase backlog for listening sockets

When systemd's socket activaction is utilized, the default backlog
parameter passed to the listen() function is set to SOMAXCONN,
which is equal to 128. In distributions where systemd is not used
for socket activation, the default UNIX socket
implementation sets the backlog value to 5.
This may lead to rare overflow of an internal connection queue.
This manifests itself as the -EAGAIN error returned by connect().

To mitigate the issue, the backlog parameter has been set
to SOMAXCONN, which is a default value used by systemd.

Change-Id: I906cd4de478b0dac0eaf860550fccd2f9cd6e184
src/manager/main/socket-manager.cpp