aggregate/last_data_recv: support Socket#accept{,_nonblock}
commitd08f1f34c0e80f36eebe2be04a8a2483be41d14a
authorEric Wong <bofh@yhbt.net>
Tue, 5 Sep 2023 11:46:45 +0000 (5 11:46 +0000)
committerEric Wong <bofh@yhbt.net>
Sun, 10 Sep 2023 20:11:54 +0000 (10 20:11 +0000)
treed44b4d2fd2c215b85b44ed2b8058c0f0260772f9
parent068a1f4ceeb77209503daad564735e354fd52445
aggregate/last_data_recv: support Socket#accept{,_nonblock}

Socket#accept and Socket#accept_nonblock return an Addrinfo
object in addition to a client socket.  This allows web servers
to avoid having to make getpeername(2) syscalls to get the
same information.
lib/raindrops/aggregate/last_data_recv.rb
test/test_last_data_recv.rb [new file with mode: 0644]