GNOME Bugzilla – Bug 688535
write/poll on closed sockets after handling a TEARDOWN request
Last modified: 2014-02-25 22:28:37 UTC
Created attachment 229238 [details] fix As discussed on IRC, we currently send the TEARDOWN response and immediately close the client connection without waiting that the response has been written to the client. This can lead to writing/polling on closed sockets, which can causes SIGPIPE or poll() to fail. The attached patch fixes this issue.
commit 65042a9551a9cf4586d6e3fa49e6a10f25873553 Author: Alessandro Decina <alessandro.d@gmail.com> Date: Sat Nov 17 14:51:52 2012 +0100 client: wait until the TEARDOWN response is sent to close the connection Responses can be sent async so we need to wait until the TEARDOWN response has been written before we close the connection to the client. This avoids the risk of writing/polling closed sockets. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=688535