mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-23 06:09:59 +00:00
Briefer ALPN error message
This commit is contained in:
@@ -139,7 +139,7 @@ pub(crate) async fn handshake<S: AsyncRead + AsyncWrite + Unpin + Send>(
|
|||||||
match conn_info.alpn_protocol() {
|
match conn_info.alpn_protocol() {
|
||||||
None => {
|
None => {
|
||||||
if direct.is_some() {
|
if direct.is_some() {
|
||||||
warn!("missing ALPN protocol 'postgresql'");
|
warn!("missing ALPN");
|
||||||
return Err(HandshakeError::ProtocolViolation);
|
return Err(HandshakeError::ProtocolViolation);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user