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

version» Context lines:

pike.git/lib/7.8/modules/SSL.pmod/sslfile.pike:799:   //! risk blocking I/O here. You should call @[close] explicitly.   //!   //! @seealso   //! @[close]   {    SSL3_DEBUG_MSG ("SSL.sslfile->destroy()\n");       // We don't know which thread this will be called in if the refcount    // garb or the gc got here. That's not a race problem since it won't    // be registered in a backend in that case. +  if (stream && stream->query_backend()) { +  // Make sure not to fail in ENTER below due to bad backend thread. +  // [bug 6958]. +  stream->set_backend(Pike.DefaultBackend); +  }    ENTER (0, 0) {    if (stream) {    if (close_state == STREAM_OPEN &&    // Don't bother with closing nicely if there's an error from    // an earlier operation. close() will throw an error for it.    !cb_errno) {    set_nonblocking_keep_callbacks();    close (0, 0, 1);    }    else