pike.git / lib / 7.8 / modules / SSL.pmod / sslfile.pike

version» Context lines:

pike.git/lib/7.8/modules/SSL.pmod/sslfile.pike:2183:    FIX_ERRNOS (    SSL3_DEBUG_MSG ("ssl_write_callback: Calling close callback %O "    "(error %s)\n", close_callback, strerror (local_errno)),    0    );    RESTORE;    return close_callback (callback_id);    }    }    -  else { -  if (write_callback && !sizeof (write_buffer) && !SSL_HANDSHAKING +  if (write_callback && !SSL_HANDSHAKING    && (close_state < NORMAL_CLOSE || cb_errno)) {    // errno() should return the error in the write callback - need    // to propagate it here.    FIX_ERRNOS (    SSL3_DEBUG_MSG ("ssl_write_callback: Calling write callback %O "    "(error %s)\n", write_callback, strerror (local_errno)),    SSL3_DEBUG_MSG ("ssl_write_callback: Calling write callback %O\n",    write_callback)    );    RESTORE;    return write_callback (callback_id);    }    } -  } +        if (close_state >= NORMAL_CLOSE &&    (close_packet_send_state >= CLOSE_PACKET_QUEUED_OR_DONE || cb_errno)) {   #ifdef DEBUG    if (close_packet_send_state == CLOSE_PACKET_MAYBE_IGNORED_WRITE_ERROR)    error ("Unexpected close_packet_send_state\n");   #endif    SSL3_DEBUG_MSG ("ssl_write_callback: "    "In or after local close - shutting down\n");    shutdown();