Use sendMessage() from AbstractSessionNegotiator 61/5461/2
authorRobert Varga <rovarga@cisco.com>
Tue, 25 Feb 2014 16:41:56 +0000 (17:41 +0100)
committerRobert Varga <rovarga@cisco.com>
Thu, 27 Feb 2014 13:53:17 +0000 (14:53 +0100)
commit72132758913b30c0ff714821aec8a21da8eb659c
treee08e01bd28f4a7d6ac03ec2d0deeb184a903bb3d
parent81df823fc82a34a9880823b6702ee22c73566380
Use sendMessage() from AbstractSessionNegotiator

AbstractSessionNegotiator now exposes sendMessage(), which aside from
issuing a writeAndFlush() also makes sure the message leaves the socket
and fails negotiation otherwise. Let's use that throughout our
negotiators, as that will harden them in race conditions.

Change-Id: Ice6995bc3a0121bef219268ac18cdb885118d1a1
Signed-off-by: Robert Varga <rovarga@cisco.com>
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/BGPSessionNegotiator.java
pcep/impl/src/main/java/org/opendaylight/protocol/pcep/impl/AbstractPCEPSessionNegotiator.java