Commit 1bceb0e
authored
bpo-35998: Fix test_asyncio.test_start_tls_server_1() (pythonGH-16815) (pythonGH-16818)
main() is now responsible to send the ANSWER, rather than
ServerProto. main() now waits until it got the HELLO before sending
the ANSWER over the new transport.
Previously, there was a race condition between main() replacing the
protocol and the protocol sending the ANSWER once it gets the HELLO.
TLSv1.3 was disabled for the test: reenable it.
(cherry picked from commit fab4ef2)1 parent 5ff8e2d commit 1bceb0e
2 files changed
Lines changed: 15 additions & 14 deletions
File tree
- Lib/test/test_asyncio
- Misc/NEWS.d/next/Tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | 498 | | |
507 | 499 | | |
508 | 500 | | |
| |||
519 | 511 | | |
520 | 512 | | |
521 | 513 | | |
522 | | - | |
| 514 | + | |
523 | 515 | | |
524 | 516 | | |
| 517 | + | |
525 | 518 | | |
526 | 519 | | |
527 | 520 | | |
| |||
535 | 528 | | |
536 | 529 | | |
537 | 530 | | |
538 | | - | |
| 531 | + | |
539 | 532 | | |
540 | 533 | | |
541 | 534 | | |
| |||
544 | 537 | | |
545 | 538 | | |
546 | 539 | | |
547 | | - | |
| 540 | + | |
548 | 541 | | |
549 | 542 | | |
550 | 543 | | |
| |||
554 | 547 | | |
555 | 548 | | |
556 | 549 | | |
557 | | - | |
558 | 550 | | |
559 | 551 | | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
560 | 555 | | |
561 | 556 | | |
562 | 557 | | |
563 | 558 | | |
564 | 559 | | |
565 | 560 | | |
566 | 561 | | |
567 | | - | |
| 562 | + | |
| 563 | + | |
568 | 564 | | |
569 | 565 | | |
570 | 566 | | |
| |||
573 | 569 | | |
574 | 570 | | |
575 | 571 | | |
576 | | - | |
| 572 | + | |
577 | 573 | | |
578 | 574 | | |
579 | 575 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments