GNOME Bugzilla – Bug 724278
gsocketconnection: Document closing connections with g_io_stream_close()
Last modified: 2014-02-13 14:11:05 UTC
Patch attached.
Created attachment 268995 [details] [review] gsocketconnection: Document closing connections with g_io_stream_close() It’s not enough to close a connection by calling g_input_stream_close() and g_output_stream_close() on its two substreams: to close the underlying socket, one must use g_io_stream_close(). Document that.
Comment on attachment 268995 [details] [review] gsocketconnection: Document closing connections with g_io_stream_close() I think the gsocketconnection.c addition is fine, but the giostream.c addition breaks up the flow of the paragraph. (The "However" part at the end seems out of place now.) And I don't think it's really necessary anyway. So I'd just leave that part out.
I removed the ‘for example’ sentence from the GIOStream docs and pushed. I think that keeps the flow, while clarifying that closing both substreams really doesn’t do what you might expect. Attachment 268995 [details] pushed as 169846c - gsocketconnection: Document closing connections with g_io_stream_close()