equal
deleted
inserted
replaced
397 private SSLConsumer getHandshakeConsumer(ConnectionContext context) { |
397 private SSLConsumer getHandshakeConsumer(ConnectionContext context) { |
398 if (handshakeConsumers.length == 0) { |
398 if (handshakeConsumers.length == 0) { |
399 return null; |
399 return null; |
400 } |
400 } |
401 |
401 |
402 // The comsuming happens in handshake context only. |
402 // The consuming happens in handshake context only. |
403 HandshakeContext hc = (HandshakeContext)context; |
403 HandshakeContext hc = (HandshakeContext)context; |
404 ProtocolVersion protocolVersion; |
404 ProtocolVersion protocolVersion; |
405 if ((hc.negotiatedProtocol == null) || |
405 if ((hc.negotiatedProtocol == null) || |
406 (hc.negotiatedProtocol == ProtocolVersion.NONE)) { |
406 (hc.negotiatedProtocol == ProtocolVersion.NONE)) { |
407 protocolVersion = hc.maximumActiveProtocol; |
407 protocolVersion = hc.maximumActiveProtocol; |
437 ConnectionContext context) { |
437 ConnectionContext context) { |
438 if (handshakeConsumers.length == 0) { |
438 if (handshakeConsumers.length == 0) { |
439 return null; |
439 return null; |
440 } |
440 } |
441 |
441 |
442 // The comsuming happens in handshake context only. |
442 // The consuming happens in handshake context only. |
443 HandshakeContext hc = (HandshakeContext)context; |
443 HandshakeContext hc = (HandshakeContext)context; |
444 ProtocolVersion protocolVersion; |
444 ProtocolVersion protocolVersion; |
445 if ((hc.negotiatedProtocol == null) || |
445 if ((hc.negotiatedProtocol == null) || |
446 (hc.negotiatedProtocol == ProtocolVersion.NONE)) { |
446 (hc.negotiatedProtocol == ProtocolVersion.NONE)) { |
447 protocolVersion = hc.maximumActiveProtocol; |
447 protocolVersion = hc.maximumActiveProtocol; |