Skip to content

spice-channel: Compute correct network wait condition after SSL_connect error

Frediano Ziglio requested to merge fziglio/spice-gtk:mr_ssl_connect into master

Do not pass always G_IO_OUT. In case SSL_connect is waiting for data and error was SSL_ERROR_WANT_READ instead of SSL_ERROR_WANT_WRITE this was creating a tight loop repeatedly calling SSL_connect till data arrived.

Note that G_IO_ERR and G_IO_HUP are always detected so no need to add them.

Merge request reports