Re: [PATCH] Don't close the socket before the coroutine shut down.



On Fri, Sep 17, 2010 at 06:18:30PM +0200, Guido Günther wrote:
> Hi Daniel,
> Here's another issue related to TLS:
> 
> The connection shutdown needs the socket intact:
> 
> 7  0xb6d38cdf in vnc_connection_tls_push (transport=0x8d84108, data=0x8df33c0, len=229) at vncconnection.c:942
> 8  0xb6b30437 in ?? () from /usr/lib/libgnutls.so.26
> 9  0xb6b2d12c in _gnutls_send_int () from /usr/lib/libgnutls.so.26
> 10 0xb6b4d682 in gnutls_alert_send () from /usr/lib/libgnutls.so.26
> 11 0xb6b2d662 in gnutls_bye () from /usr/lib/libgnutls.so.26
> 12 0xb6d3a620 in vnc_connection_close (conn=0x8d84108) at vncconnection.c:4323
> 
> so close the socket after the coroutine shutdown. Otherwise it fills the
> console with:
> 
> (gvncviewer:11056): GLib-GIO-CRITICAL **: g_socket_send: assertion `G_IS_SOCKET (socket) && buffer != NULL' failed
> 
> and gets stuck in an endless loop. Patch attached.

Thanks, I pushed that. I didn't see it myself because I'm in the habit
of Ctrl-C'ing all my sessions  :-)

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]