File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ cm4all-spawn (0.23) unstable; urgency=low
22
33 * accessory: rename the PID namespace init process to "init"
44 * accessory: support user namespaces
5+ * accessory: eliminate last recvmsg() system call on closed connection
56
67 --
78
Original file line number Diff line number Diff line change @@ -157,6 +157,13 @@ try {
157157 return false ;
158158}
159159
160+ bool
161+ SpawnConnection::OnUdpHangup ()
162+ {
163+ delete this ;
164+ return false ;
165+ }
166+
160167void
161168SpawnConnection::OnUdpError (std::exception_ptr ep) noexcept
162169{
Original file line number Diff line number Diff line change @@ -38,5 +38,6 @@ private:
3838 bool OnUdpDatagram (std::span<const std::byte> payload,
3939 std::span<UniqueFileDescriptor> fds,
4040 SocketAddress address, int uid) override ;
41+ bool OnUdpHangup () override ;
4142 void OnUdpError (std::exception_ptr ep) noexcept override ;
4243};
You can’t perform that action at this time.
0 commit comments