return builder.build();
}
+ @SuppressWarnings("checkstyle:illegalCatch")
private synchronized void handleOpen(final Open openObj) {
final IpAddressNoZone remoteIp = getRemoteIp();
final BGPSessionPreferences preferences = this.registry.getPeerPreferences(remoteIp);
this.session = new BGPSessionImpl(peer, this.channel, openObj, preferences, this.registry);
this.session.setChannelExtMsgCoder(openObj);
LOG.debug("Channel {} moved to OPEN_CONFIRM state with remote proposal {}", this.channel, openObj);
- } catch (final BGPDocumentedException e) {
+ } catch (final BGPDocumentedException | RuntimeException e) {
LOG.warn("Channel {} negotiation failed", this.channel, e);
negotiationFailed(e);
}