Opened 3 years ago

#5150 enhancement new

Speed up twisted.protocols.tls shutdown by reducing number of roundtrips

Reported by: itamar Owned by:
Priority: normal Milestone:
Component: core Keywords:
Cc: Branch:
Author: Launchpad Bug:

Description

t.p.tls shutdown currently works like this -

  1. A to B: TLS shutdown, please.
  2. B to A: OK, TLS shutdown. TCP FIN too.
  3. A to B: TCP FIN.

Using half-close, this could be reduced to:

  1. A to B: TLS shutdown, please. TCP FIN.
  2. B to A: OK, TLS shutdown. TCP FIN too.

Attached is a patch (against #5118 branch) that implements a working sketch.

Attachments (1)

halfclose.diff (2.4 KB) - added by itamar 3 years ago.
Patch against #5118 branch (or trunk, if merged)

Download all attachments as: .zip

Change History (1)

Changed 3 years ago by itamar

Patch against #5118 branch (or trunk, if merged)

Note: See TracTickets for help on using tickets.