summaryrefslogtreecommitdiff
path: root/ctdb/common/sock_io.c
Commit message (Collapse)AuthorAgeFilesLines
* ctdb-common: Use correct return type for tevent_queue_add_entryAmitay Isaacs2018-07-101-3/+3
| | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13493 Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net> (cherry picked from commit b977ded38a79e1eadd6965e8b7fd49f86322b4d6)
* ctdb-common: Refactor code to remove a stale socketAmitay Isaacs2017-02-171-0/+15
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-common: Fix a bug in packet reading code for generic socket I/OAmitay Isaacs2017-01-061-13/+15
| | | | | | | | | | | queue->offset currently points to the end of available data. However, after processing one packet the beginning of the next packet is not marked explicitly and caused the same packet to be processed again. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12500 Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb: Fix CID 1398178 Argument cannot be negativeVolker Lendecke2016-12-271-1/+0
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
* ctdb-common: Add generic socket I/OAmitay Isaacs2016-12-181-0/+309
This is a generic socket read/write to be used in the ctdb daemon. It is based on ctdb_io.c and comm.c. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>