Opened 3 years ago

Closed 3 years ago

#6311 enhancement closed invalid (invalid)

Allow Twisted to accept SOCK_DGRAM listening sockets from systemd

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

Description

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.

Eg

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

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

See also:

Change History (2)

comment:1 Changed 3 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 3 years ago by exarkun

  • Resolution set to invalid
  • Status changed from new to closed

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.