core: Error handling of upload file writing
authorGrzegorz Grabowski <grzegorz.grabowski@comarch.com>
Thu, 27 Oct 2011 12:56:00 +0000 (14:56 +0200)
committerJens Georg <mail@jensge.org>
Mon, 21 Nov 2011 09:31:53 +0000 (10:31 +0100)
commita258ac8229ff8a123c60cfed357997a3960f3df1
tree05a359d343dab98fa5d769d2117c9533dd6ef405
parent0a6e86bea7ef1c2f341a2eecf66ae9fa12e14f1a
core: Error handling of upload file writing

If stream.write_all method threw an exception Rygel crashed.
It happened because on_got_body and on_got_chunk signals came after
HTTPPost object transitioned to finished state.
The fix disconnects from these signals after file writing errors occurs
since there is no recovery from such situation which in real
happens only when there is no disk space or max file size is limited.
src/rygel/rygel-http-post.vala
src/rygel/rygel-http-request.vala