Commit afbcd9f
bpo-35998: Fix test_asyncio.test_start_tls_server_1() (pythonGH-16815)
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)
Co-authored-by: Victor Stinner <vstinner@python.org>1 parent 2d647c0 commit afbcd9f
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 | |
|---|---|---|---|
| |||
497 | 497 | | |
498 | 498 | | |
499 | 499 | | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | 500 | | |
509 | 501 | | |
510 | 502 | | |
| |||
521 | 513 | | |
522 | 514 | | |
523 | 515 | | |
524 | | - | |
| 516 | + | |
525 | 517 | | |
526 | 518 | | |
| 519 | + | |
527 | 520 | | |
528 | 521 | | |
529 | 522 | | |
| |||
537 | 530 | | |
538 | 531 | | |
539 | 532 | | |
540 | | - | |
| 533 | + | |
541 | 534 | | |
542 | 535 | | |
543 | 536 | | |
| |||
546 | 539 | | |
547 | 540 | | |
548 | 541 | | |
549 | | - | |
| 542 | + | |
550 | 543 | | |
551 | 544 | | |
552 | 545 | | |
| |||
556 | 549 | | |
557 | 550 | | |
558 | 551 | | |
559 | | - | |
560 | 552 | | |
561 | 553 | | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
562 | 557 | | |
563 | 558 | | |
564 | 559 | | |
565 | 560 | | |
566 | 561 | | |
567 | 562 | | |
568 | 563 | | |
569 | | - | |
| 564 | + | |
| 565 | + | |
570 | 566 | | |
571 | 567 | | |
572 | 568 | | |
| |||
575 | 571 | | |
576 | 572 | | |
577 | 573 | | |
578 | | - | |
| 574 | + | |
579 | 575 | | |
580 | 576 | | |
581 | 577 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments