You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
0x0 : AF_UNSPEC : the connection is forwarded for an unknown, unspecified
or unsupported protocol. The sender should use this family when sending
LOCAL commands or when dealing with unsupported protocol families. The
receiver is free to accept the connection anyway and use the real endpoint
addresses or to reject it. The receiver should ignore address information.
…ily is `AF_UNSPEC`
Motivation:
Armeria HAProxy handler considers that a HAProxyMessage contains addresses information.
However, if the address family is `AF_UNSPEC`, the addresses are null always.
From the HAProxy spec, the receiver can accept the connection or reject it.
There seems to be no harm ignoring the addresses information.
Modifications:
- Ignore proxied addresses information if AddressFamily is `AF_UNSPEC`
Result:
- HAProxy handler does not throw NullPointerException anymore.
- Fixesline#2984
ikhoon
changed the title
NullPointerException when HAPROXY socket family is AF_UNSPEC
NullPointerException is thrown when HAPROXY socket family is AF_UNSPECAug 10, 2020
#2985)
…ily is `AF_UNSPEC`
Motivation:
Armeria HAProxy handler considers that a `HAProxyMessage` contains address information.
However, if the address family is `AF_UNSPEC`, the addresses are null always.
From the HAProxy spec, the receiver can accept the connection or reject it.
There seems to be no harm ignoring the addresses information.
Modifications:
- Ignore proxied addresses information if its address family is `AF_UNSPEC`
Result:
- HAProxy handler does not throw a `NullPointerException` anymore.
- Fixes#2984
line#2985)
…ily is `AF_UNSPEC`
Motivation:
Armeria HAProxy handler considers that a `HAProxyMessage` contains address information.
However, if the address family is `AF_UNSPEC`, the addresses are null always.
From the HAProxy spec, the receiver can accept the connection or reject it.
There seems to be no harm ignoring the addresses information.
Modifications:
- Ignore proxied addresses information if its address family is `AF_UNSPEC`
Result:
- HAProxy handler does not throw a `NullPointerException` anymore.
- Fixesline#2984
When Armeria Server receives a request from HAPROXY whose socket family is
AF_UNSPEC
, NPE is thrown.The text was updated successfully, but these errors were encountered: