Commit 4b7a2b6
committed
wolfSSL_shutdown: fix non-blocking retry after WANT_WRITE.
1. Send buffered message in case SendAlert_ex returned WANT_WRITE.
2. If pending messages are sent successfully return SHUTDOWN_NOT_DONE as
current API behavior.
3. Propagate WANT_READ error for ProcessReply if waiting for other peer
shutdown (when invoking wolfSSL_shutdown for the second time)1 parent 6b0e24e commit 4b7a2b6
2 files changed
Lines changed: 50 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26502 | 26502 | | |
26503 | 26503 | | |
26504 | 26504 | | |
26505 | | - | |
26506 | | - | |
26507 | | - | |
26508 | | - | |
26509 | | - | |
26510 | | - | |
26511 | | - | |
26512 | | - | |
26513 | | - | |
26514 | | - | |
26515 | | - | |
26516 | | - | |
26517 | | - | |
26518 | | - | |
26519 | 26505 | | |
26520 | 26506 | | |
26521 | 26507 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4478 | 4478 | | |
4479 | 4479 | | |
4480 | 4480 | | |
| 4481 | + | |
| 4482 | + | |
| 4483 | + | |
| 4484 | + | |
| 4485 | + | |
| 4486 | + | |
| 4487 | + | |
| 4488 | + | |
| 4489 | + | |
| 4490 | + | |
| 4491 | + | |
| 4492 | + | |
| 4493 | + | |
| 4494 | + | |
| 4495 | + | |
| 4496 | + | |
| 4497 | + | |
| 4498 | + | |
| 4499 | + | |
| 4500 | + | |
| 4501 | + | |
| 4502 | + | |
| 4503 | + | |
| 4504 | + | |
| 4505 | + | |
| 4506 | + | |
| 4507 | + | |
| 4508 | + | |
| 4509 | + | |
| 4510 | + | |
| 4511 | + | |
| 4512 | + | |
4481 | 4513 | | |
4482 | 4514 | | |
4483 | 4515 | | |
4484 | 4516 | | |
| 4517 | + | |
| 4518 | + | |
| 4519 | + | |
| 4520 | + | |
| 4521 | + | |
| 4522 | + | |
4485 | 4523 | | |
4486 | 4524 | | |
4487 | 4525 | | |
4488 | 4526 | | |
4489 | | - | |
| 4527 | + | |
4490 | 4528 | | |
4491 | 4529 | | |
4492 | 4530 | | |
| |||
4506 | 4544 | | |
4507 | 4545 | | |
4508 | 4546 | | |
4509 | | - | |
| 4547 | + | |
4510 | 4548 | | |
4511 | 4549 | | |
4512 | 4550 | | |
| |||
4516 | 4554 | | |
4517 | 4555 | | |
4518 | 4556 | | |
4519 | | - | |
| 4557 | + | |
| 4558 | + | |
4520 | 4559 | | |
4521 | | - | |
| 4560 | + | |
| 4561 | + | |
| 4562 | + | |
| 4563 | + | |
| 4564 | + | |
| 4565 | + | |
4522 | 4566 | | |
4523 | | - | |
| 4567 | + | |
| 4568 | + | |
4524 | 4569 | | |
4525 | 4570 | | |
4526 | 4571 | | |
| |||
0 commit comments