Commit 22e0f96
tlshd: receive new session ticket msg after completing quic handshake
The latest update to the QUIC module changed to use NEW_SESSION_TICKET
event or SESSION_TICKET socket option to receive new session ticket msg
after handshake to avoid blocking the app data receiving before getting
the new session ticket msg in the previous recvmsg() way.
So delete the callback tlshd_quic_client_ticket_recv() and introduce
tlshd_quic_recv_session_ticket() called after handshake is completed.
In this function, it will try for conn->recv_ticket (from kernel) secs
in a loop to get the ticket msg via SESSION_TICKET socket option and
pass the session data back to kernel after processing the msg.
Signed-off-by: Xin Long <[email protected]>1 parent 3fa2c5e commit 22e0f96
2 files changed
+52
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | 458 | | |
486 | 459 | | |
487 | 460 | | |
| |||
525 | 498 | | |
526 | 499 | | |
527 | 500 | | |
528 | | - | |
529 | | - | |
530 | 501 | | |
531 | 502 | | |
532 | 503 | | |
| |||
585 | 556 | | |
586 | 557 | | |
587 | 558 | | |
588 | | - | |
589 | | - | |
590 | 559 | | |
591 | 560 | | |
592 | 561 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
142 | | - | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
502 | 502 | | |
503 | 503 | | |
504 | 504 | | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
505 | 553 | | |
506 | 554 | | |
507 | 555 | | |
| |||
582 | 630 | | |
583 | 631 | | |
584 | 632 | | |
| 633 | + | |
| 634 | + | |
585 | 635 | | |
586 | 636 | | |
0 commit comments