Change the semantics of GTlsConnection:require-close-notify
authorDan Winship <danw@gnome.org>
Mon, 6 Dec 2010 12:10:09 +0000 (13:10 +0100)
committerDan Winship <danw@gnome.org>
Tue, 7 Dec 2010 09:41:06 +0000 (10:41 +0100)
commit4f6efb681d7a85d9d04ffdba9a5f692e3d53e41e
treecd16e3be7070d0351ed52c695f0297c11902c732
parent68a3d6b27fec3bdbba27b414c0ed10396c79d3c6
Change the semantics of GTlsConnection:require-close-notify

We were combining "allow un-notified closes" and "close without
notifying" into a single property, which meant that it was impossible
to "be liberal in what you accept and conservative in what you send".
Change require-close-notify to only be about the peer behavior, and
make our connections always close-notify properly when closing (while
noting that you can just close the base-io-stream directly if you want
to do an unclean close).
gio/gtlsconnection.c