diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2010-05-14 16:54:39 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2010-05-14 16:54:39 +0200 |
commit | 475977242ac5bb9ff8826c2dd8c9a1a180320de2 (patch) | |
tree | 492a30a92b83d398635c5c4e720ae140a1a53513 /proto/bgp/packets.c | |
parent | 0267f49fb2e44525aa2777bcb9900c4bb2db41e1 (diff) | |
download | bird-475977242ac5bb9ff8826c2dd8c9a1a180320de2.tar bird-475977242ac5bb9ff8826c2dd8c9a1a180320de2.zip |
Handle EPIPE as a common connection close event.
Diffstat (limited to 'proto/bgp/packets.c')
-rw-r--r-- | proto/bgp/packets.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c index 2160182..1e9d646 100644 --- a/proto/bgp/packets.c +++ b/proto/bgp/packets.c @@ -594,7 +594,7 @@ bgp_kick_tx(void *vconn) struct bgp_conn *conn = vconn; DBG("BGP: kicking TX\n"); - while (bgp_fire_tx(conn)) + while (bgp_fire_tx(conn) > 0) ; } @@ -604,7 +604,7 @@ bgp_tx(sock *sk) struct bgp_conn *conn = sk->data; DBG("BGP: TX hook\n"); - while (bgp_fire_tx(conn)) + while (bgp_fire_tx(conn) > 0) ; } |