Commit Graph

14 Commits

Author SHA1 Message Date
David Vossel
7f56f583d8 High: yield to scheduler during new connection auth processing 2015-03-05 15:36:51 -05:00
David Vossel
2700cddd6b Fix: ipcs: Correctly allocate receive buffer size 2014-08-21 12:07:43 -05:00
Kazunori INOUE
f5c8c94a5f Low: ipc_setup.c: Add log for EAGAIN 2014-02-20 18:07:09 +09:00
David Vossel
aa24dd848a Fix: fixes travis compile time error 2014-02-05 10:21:12 -06:00
David Vossel
6a2ff420e1 High: ipcs: Prevent ipc server use after free.
The ipc server registers the bind socket to
the poll loop in order to be alerted to new
connection requests. Upon shutdown, the ipc server
does not remove this poll entry. This patch fixes
this use after free.
2014-01-17 11:22:27 -06:00
David Vossel
b05ca12431 Merge pull request #98 from davidvossel/server_side_buf_limit
Server side max buffer limit
2013-11-18 09:28:53 -08:00
David Vossel
9f6e4bb52d Feature: Enforce buffer size limits on the server side 2013-11-18 16:51:31 -06:00
Jan Friesse
81ca7d30de ipc_setup: Set SO_PASSCRED on listener socket
This is needed, because newer kernels doesn't correctly support setting
SO_PASSCRED on sockets returned by accept call, but socket option must
be set on server socket (before accept call).

For more details, see:
http://patchwork.ozlabs.org/patch/284366/

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2013-10-21 17:19:59 +02:00
Michael van der Westhuizen
57e630f63f Use sizeof to get the correct size of the sockaddr_un sun_path member in a portable way. Fixes corosync on Mac OS X. 2013-09-03 08:44:15 +02:00
David Vossel
ff180f7a55 Fix: ipcs: Disconnect shm ipc connection when poll socket returns error on msg receive 2013-07-01 19:20:51 -05:00
Angus Salkeld
c445c06620 Properly discover SO_NOSIGPIPE and MSG_SIGNAL
bug #57
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-03-12 21:13:47 +11:00
Angus Salkeld
31d9f0900d Use dgram sockets for message oriented communications
This is to prevent partial sends and gettting stuck in
retry loops.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-02-18 20:51:33 +11:00
Angus Salkeld
481bd0cf86 IPC: don't interpret EMSGSIZE and ENOMSG as a disconnect
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-02-18 20:51:33 +11:00
Angus Salkeld
9d2eca251b IPC: seperate ipc_us.c into 2 files
Seperate into a setup file and a socket backend file, it was getting messy
and confusing. Also preparing for using DGRAM sockets.

This should not result in any logical changes.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-02-06 11:21:05 +11:00