]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msg/async: bunch of fixes 7379/head
authorPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Mon, 25 Jan 2016 08:38:06 +0000 (09:38 +0100)
committerPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Wed, 27 Jan 2016 14:17:20 +0000 (15:17 +0100)
commit5e2fc70e4cbc75cd41b4961816d9eea79b410fbb
tree6ce3bb44ca36df0603edd1d6df25d688390b0d64
parentab3e1c6bebd27ae2329f1ca0b2b6a8703c98c764
msg/async: bunch of fixes

1. Use MSG_MORE in sendmsg to reduce number of actual sends and pass hint
   to do_sendmsg in callers.
2. Move restore_sigpipe() outside of loop in do_sendmsg().
3. restore_sigpipe when hit the error condition in do_sendmsg().
3. When sent_bytes >= outcoming_bl.length, don't swap outgoing_bl with
   bl and wait for bl to get out of scope, just clear out outgoing_bl.
4. Don't swap empty outcoming_bl with bl, always claim_append(bl).

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
src/msg/async/AsyncConnection.cc