@@ -369,6 +369,7 @@ Opening network connections
369
369
family=0, proto=0, flags=0, sock=None, \
370
370
local_addr=None, server_hostname=None, \
371
371
ssl_handshake_timeout=None, \
372
+ ssl_shutdown_timeout=None, \
372
373
happy_eyeballs_delay=None, interleave=None)
373
374
374
375
Open a streaming transport connection to a given
@@ -456,6 +457,10 @@ Opening network connections
456
457
to wait for the TLS handshake to complete before aborting the connection.
457
458
``60.0 `` seconds if ``None `` (default).
458
459
460
+ * *ssl_shutdown_timeout * is the time in seconds to wait for the SSL shutdown
461
+ to complete before aborting the connection. ``30.0 `` seconds if ``None ``
462
+ (default).
463
+
459
464
.. versionchanged :: 3.5
460
465
461
466
Added support for SSL/TLS in :class: `ProactorEventLoop `.
@@ -484,6 +489,10 @@ Opening network connections
484
489
485
490
For more information: https://tools.ietf.org/html/rfc6555
486
491
492
+ .. versionchanged :: 3.11
493
+
494
+ Added the *ssl_shutdown_timeout * parameter.
495
+
487
496
.. seealso ::
488
497
489
498
The :func: `open_connection ` function is a high-level alternative
@@ -569,7 +578,8 @@ Opening network connections
569
578
570
579
.. coroutinemethod :: loop.create_unix_connection(protocol_factory, \
571
580
path=None, *, ssl=None, sock=None, \
572
- server_hostname=None, ssl_handshake_timeout=None)
581
+ server_hostname=None, ssl_handshake_timeout=None, \
582
+ ssl_shutdown_timeout=None)
573
583
574
584
Create a Unix connection.
575
585
@@ -592,6 +602,10 @@ Opening network connections
592
602
Added the *ssl_handshake_timeout * parameter.
593
603
The *path * parameter can now be a :term: `path-like object `.
594
604
605
+ .. versionchanged :: 3.11
606
+
607
+ Added the *ssl_shutdown_timeout * parameter.
608
+
595
609
596
610
Creating network servers
597
611
^^^^^^^^^^^^^^^^^^^^^^^^
@@ -602,7 +616,9 @@ Creating network servers
602
616
flags=socket.AI_PASSIVE, \
603
617
sock=None, backlog=100, ssl=None, \
604
618
reuse_address=None, reuse_port=None, \
605
- ssl_handshake_timeout=None, start_serving=True)
619
+ ssl_handshake_timeout=None, \
620
+ ssl_shutdown_timeout=None, \
621
+ start_serving=True)
606
622
607
623
Create a TCP server (socket type :data: `~socket.SOCK_STREAM `) listening
608
624
on *port * of the *host * address.
@@ -662,6 +678,10 @@ Creating network servers
662
678
for the TLS handshake to complete before aborting the connection.
663
679
``60.0 `` seconds if ``None `` (default).
664
680
681
+ * *ssl_shutdown_timeout * is the time in seconds to wait for the SSL shutdown
682
+ to complete before aborting the connection. ``30.0 `` seconds if ``None ``
683
+ (default).
684
+
665
685
* *start_serving * set to ``True `` (the default) causes the created server
666
686
to start accepting connections immediately. When set to ``False ``,
667
687
the user should await on :meth: `Server.start_serving ` or
@@ -682,6 +702,10 @@ Creating network servers
682
702
The socket option :py:data: `~socket.TCP_NODELAY ` is set by default
683
703
for all TCP connections.
684
704
705
+ .. versionchanged :: 3.11
706
+
707
+ Added the *ssl_shutdown_timeout * parameter.
708
+
685
709
.. seealso ::
686
710
687
711
The :func: `start_server ` function is a higher-level alternative API
@@ -691,7 +715,9 @@ Creating network servers
691
715
692
716
.. coroutinemethod :: loop.create_unix_server(protocol_factory, path=None, \
693
717
*, sock=None, backlog=100, ssl=None, \
694
- ssl_handshake_timeout=None, start_serving=True)
718
+ ssl_handshake_timeout=None, \
719
+ ssl_shutdown_timeout=None, \
720
+ start_serving=True)
695
721
696
722
Similar to :meth: `loop.create_server ` but works with the
697
723
:py:data: `~socket.AF_UNIX ` socket family.
@@ -711,8 +737,14 @@ Creating network servers
711
737
Added the *ssl_handshake_timeout * and *start_serving * parameters.
712
738
The *path * parameter can now be a :class: `~pathlib.Path ` object.
713
739
740
+ .. versionchanged :: 3.11
741
+
742
+ Added the *ssl_shutdown_timeout * parameter.
743
+
744
+
714
745
.. coroutinemethod :: loop.connect_accepted_socket(protocol_factory, \
715
- sock, *, ssl=None, ssl_handshake_timeout=None)
746
+ sock, *, ssl=None, ssl_handshake_timeout=None, \
747
+ ssl_shutdown_timeout=None)
716
748
717
749
Wrap an already accepted connection into a transport/protocol pair.
718
750
@@ -734,6 +766,10 @@ Creating network servers
734
766
wait for the SSL handshake to complete before aborting the connection.
735
767
``60.0 `` seconds if ``None `` (default).
736
768
769
+ * *ssl_shutdown_timeout * is the time in seconds to wait for the SSL shutdown
770
+ to complete before aborting the connection. ``30.0 `` seconds if ``None ``
771
+ (default).
772
+
737
773
Returns a ``(transport, protocol) `` pair.
738
774
739
775
.. versionadded :: 3.5.3
@@ -742,6 +778,10 @@ Creating network servers
742
778
743
779
Added the *ssl_handshake_timeout * parameter.
744
780
781
+ .. versionchanged :: 3.11
782
+
783
+ Added the *ssl_shutdown_timeout * parameter.
784
+
745
785
746
786
Transferring files
747
787
^^^^^^^^^^^^^^^^^^
@@ -778,7 +818,8 @@ TLS Upgrade
778
818
779
819
.. coroutinemethod :: loop.start_tls(transport, protocol, \
780
820
sslcontext, *, server_side=False, \
781
- server_hostname=None, ssl_handshake_timeout=None)
821
+ server_hostname=None, ssl_handshake_timeout=None, \
822
+ ssl_shutdown_timeout=None)
782
823
783
824
Upgrade an existing transport-based connection to TLS.
784
825
@@ -804,8 +845,17 @@ TLS Upgrade
804
845
wait for the TLS handshake to complete before aborting the connection.
805
846
``60.0 `` seconds if ``None `` (default).
806
847
848
+ * *ssl_shutdown_timeout * is the time in seconds to wait for the SSL shutdown
849
+ to complete before aborting the connection. ``30.0 `` seconds if ``None ``
850
+ (default).
851
+
807
852
.. versionadded :: 3.7
808
853
854
+ .. versionchanged :: 3.11
855
+
856
+ Added the *ssl_shutdown_timeout * parameter.
857
+
858
+
809
859
810
860
Watching file descriptors
811
861
^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments