Opened 5 years ago

Closed 5 years ago

#6311 enhancement closed invalid (invalid)

Allow Twisted to accept SOCK_DGRAM listening sockets from systemd

Reported by: Richard Wall Owned by:
Priority: normal Milestone:
Component: core Keywords:
Cc: Branch:


After #5574, the reactor will be able to adopt listening sockets of type SOCK_DGRAM.

This will require a new parameter "type" for systemd strports.


 --port systemd:domain=INET:type=DGRAM:index=0

Also remember to update the systemd deployment howto which currently lists this as a known limitation.

  • source:trunk/doc/core/howto/systemd.xhtml

See also:

Change History (2)

comment:1 Changed 5 years ago by Glyph

This won't work as specified. Existing --port options are all for stream sockets, because there is no endpoint interface defined for datagram sockets, and therefore no string parser for them. Even if such an interface were defined, it would not make sense to give an existing --port option a datagram endpoint, since they're calling an API they expect to produce a stream endpoint.

comment:2 Changed 5 years ago by Jean-Paul Calderone

Resolution: invalid
Status: newclosed

As explained, this doesn't make sense. Consider revisiting it after there is an endpoint-like API for datagram transports/protocols.

Note: See TracTickets for help on using tickets.