[Spice-devel] [PATCH spice-gtk 3/5] giopipe: output wake up on peer close
marcandre.lureau at redhat.com
marcandre.lureau at redhat.com
Thu Aug 17 13:35:55 UTC 2017
From: Marc-André Lureau <marcandre.lureau at redhat.com>
Similar to input is_readable(), return writable after a close, so an
error is reported to the async write.
Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
---
src/giopipe.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/giopipe.c b/src/giopipe.c
index efe9857..c653cb8 100644
--- a/src/giopipe.c
+++ b/src/giopipe.c
@@ -420,7 +420,7 @@ pipe_output_stream_is_writable (GPollableOutputStream *stream)
PipeOutputStream *self = PIPE_OUTPUT_STREAM(stream);
gboolean writable;
- writable = self->buffer == NULL || self->peer->read >= 0;
+ writable = self->buffer == NULL || self->peer->read >= 0 || self->peer_closed;
//g_debug("writable %p %d", self, writable);
return writable;
--
2.14.0.1.geff633fa0
More information about the Spice-devel
mailing list