You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working with socketserver recently I noticed that the allow_reuse_port class attribute is not documented but the allow_reuse_address attribute is.
Class variables that may be overridden by derived classes or
instances:
- timeout
- address_family
- socket_type
- allow_reuse_address
- allow_reuse_port
Instance variables:
- RequestHandlerClass
- socket
In addition there's a couple of places we could clean up right now, for instance address_family is still grouped with the per-instance attributes rather than the class attributes, request_queue_size is only applicable to TCP, and there's another missing undocumented class attribute for specifying max packet size that is only applicable to UDP.
Documentation
While working with socketserver recently I noticed that the
allow_reuse_port
class attribute is not documented but theallow_reuse_address
attribute is.cpython/Lib/socketserver.py
Lines 185 to 198 in f9a5a3a
In addition there's a couple of places we could clean up right now, for instance
address_family
is still grouped with the per-instance attributes rather than the class attributes,request_queue_size
is only applicable to TCP, and there's another missing undocumented class attribute for specifying max packet size that is only applicable to UDP.Linked PRs
The text was updated successfully, but these errors were encountered: