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
…s. (#9219)
Motivation:
This resolves a TODO from the initial transport-native-kqueue implementation, supplying the user with the pid of the local peer client/server process.
Modification:
Inside netty_kqueue_bsdsocket_getPeerCredentials, Call getsockopt with LOCAL_PEERPID and pass it to PeerCredentials constructor.
Add a test case in KQueueSocketTest.
Result:
PeerCredentials now have pid field set. Fixes#9213
…s. (#9219)
Motivation:
This resolves a TODO from the initial transport-native-kqueue implementation, supplying the user with the pid of the local peer client/server process.
Modification:
Inside netty_kqueue_bsdsocket_getPeerCredentials, Call getsockopt with LOCAL_PEERPID and pass it to PeerCredentials constructor.
Add a test case in KQueueSocketTest.
Result:
PeerCredentials now have pid field set. Fixes#9213
Calling KQueueDomainSocketChannel#peerCredentials returns PeerCredentials with PID field not set.
The reason for that is given in the following note:
netty/transport-native-kqueue/src/main/c/netty_kqueue_bsdsocket.c
Line 162 in ec69da9
but the above note is not necessarily true. It is also possible to get the peer PID using get_sock_opts with LOCAL_PEERPID (see https://stackoverflow.com/questions/38185024/check-sender-when-listening-to-unix-socket/38207320#answer-38207320%E2%80%8F).
The text was updated successfully, but these errors were encountered: