Ticket #26122: patch-gio-socket-block-bug.diff

File patch-gio-socket-block-bug.diff, 624 bytes (added by louis-francis.ratte-boulianne@…, 14 years ago)

Patch gio-socket-block-bug

  • lib/ext/wocky/wocky/wocky-connector.c

    diff --git lib/ext/wocky/wocky/wocky-connector.c.orig lib/ext/wocky/wocky/wocky-connector.c
    index 377f736..e1a329a 100644
    old new maybe_old_ssl (WockyConnector *self) 
    980980{
    981981  WockyConnectorPrivate *priv = self->priv;
    982982
     983  // Prevent _input_stream_read_async() from blocking from time to time
     984  // (see https://bugzilla.gnome.org/show_bug.cgi?id=616458)
     985  g_socket_set_blocking (g_socket_connection_get_socket(priv->sock), FALSE);
     986
    983987  if (priv->legacy_ssl && !priv->encrypted)
    984988    {
    985989      g_assert (priv->conn == NULL);