2476
2477
/* our shutdown alert has been sent now, and if it still needs
2477
2478
* to be written, s->s3->alert_dispatch will be true */
2479
2482
else if (s->s3->alert_dispatch)
2481
2484
/* resend it if not sent */
2486
2497
else if (!(s->shutdown & SSL_RECEIVED_SHUTDOWN))
2488
2499
/* If we are waiting for a close from our peer, we are closed */
2489
2500
s->method->ssl_read_bytes(s,0,NULL,0,0);
2492
2507
if ((s->shutdown == (SSL_SENT_SHUTDOWN|SSL_RECEIVED_SHUTDOWN)) &&