diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2014-05-06 09:10:26 +0000 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-05-10 01:14:57 +0900 |
commit | b65d6dc315490507a4d5a99e8afb94535e4687f8 (patch) | |
tree | 80995f7b8113393d8e32a266451feca7a8d8c084 /setup.cfg | |
parent | 2430fc7c17fc999a9733aae134afcb3c0535b049 (diff) |
bgp: fix bug of accessing dead socket
BGP session can be closed by sending inappropriate messages.
So touching socket by get_peername() after sending messages may cause an
exception. Though we can handle this by try..exception, I fixed to simply
call get_peername() before sending messages because session disconnection by
sending messages is an ordinary procedure and not an exception(the peer will
send notification before disconnection).
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'setup.cfg')
0 files changed, 0 insertions, 0 deletions