Skip to content

Releases

Twisted 26.10.0

Choose a tag to compare

@adiroiban adiroiban released this 30 Oct 09:23

twisted 26.10.0 (2026-10-30)

No changes since 26.10.0rc2.
Since 26.10.0rc1, this release added the fix for #12885.

This is the last release with support for Python 3.10.

This include fixes for:

Features

  • It is now possible to set the SO_REUSEPORT and SO_REUSEADDR TCP socket flags from user code. (#9101)
  • Python 3.14 is now supported. (#12640)
  • twisted.internet.defer.Deferred.__iter__, used when awaiting a Deferred, is now about 2-3% faster. (#12727)

Bugfixes

  • twisted.internet.tcp.Port.startListening() now closes the socket when raising CannotListenError. (#6108)
  • Initiating a TCP connection with an address literals and a port outside of the 1-65535 range in twisted.internet.tcp.BaseClient and twisted.internet.iocpreactor.tcp.Client now triggers an errback instead of an unhandled error. This change might also fix other unhandled errors occurred while connecting using address literals. (#7798)
  • twisted.logger.LoggingFile.fileno now raises io.UnsupportedOperation
    instead of returning -1.
    This fixes an interoperability issue with multiprocessing. (#9638)
  • twistd now exits with a non-zero status when given an unknown subcommand. (#12656)
  • twisted.internet.testing.MemoryReactor.removeAll() now returns what was removed to comply with IReactorFDSet.removeAll() (#12743)
  • twisted.internet.asyncioreactor.AsyncioSelectorReactor.callLater now has the
    same signature as twisted.internet.interfaces.IReactorTime.callLater.
    twisted.internet.asyncioreactor.AsyncioSelectorReactor.callFromThread now has the
    same signature as twisted.internet.interfaces.IReactorFromThreads.callFromThread. (#12767)
  • twisted.protocols.ftp.FTPClient now uses ip address of the original ftp server to open passive data connections by default, instead of trusting PASV responses. (#12847)

Improved Documentation

  • The “Writing Servers” and “UDP Networking” documentation pages have been updated to remove obsolete references to persisting the reactor (a feature gone from Twisted for several decades now), and to better explain the factory and protocol setup and teardown lifecycle. (#5031)
  • Twisted's policy documentation now includes a prominently featured, clear
    explanation of our AI policy: to wit, including the outputs of generative AI
    systems is forbidden. (#12676)

Deprecations and Removals

  • twisted.internet.tcp.Connection no longer supports returning a non-None value from a protocol's dataReceived method, deprecated since Twisted 11.0.0. (#12688)
  • twisted.internet.error.PotentialZombieWarning, deprecated since Twisted 10.0, has been removed. (#12744)
  • Implementations of twisted.internet.interfaces.IProcessProtocol are now required to provide a processExited method. Omitting this method was deprecated in Twisted 8.2. (#12824)
  • twisted.internet.ssl.protocolNegotiationMechanisms and twisted.internet.ssl.ProtocolNegotiationSupport are deprecated because all supported TLS backends provide ALPN. Callers can configure ALPN without checking for support. (#12868)

Misc

Conch

Features


- twisted.conch.ssh.transport.SSHServerTransport now supports the hybrid
  post-quantum key exchange algorithm mlkem768x25519-sha256. (#12520)


Bugfixes
  • twisted.conch.telnet.Telnet.dataReceived now limits how much data it buffers for a single telnet subnegotiation, so a peer can no longer exhaust server memory by sending a subnegotiation that is never terminated. (#12706)
  • To comply with RFC 4254 Section-6.5, twisted.conch.ssh.session.SSHSession will
    now enforce that only one "shell", "exec", or "subsystem" command will succeed
    per channel. (#12800)

Web

Features


- twisted.web.http.Request.write now performs chunked writes ~12% faster (#12729)


Bugfixes
  • twisted.web.websocket.WebSocketResource and twisted.web.websocket.WebSocketClientEndpoint will now deliver complete messages, rather than partial messages, to textMessageReceived and bytesMessageReceived on their WebSocketProtocol. (#12885)
  • twisted.web's HTTP/2 server now limits the rate at which a remote peer may reset streams, mitigating the HTTP/2 Rapid Reset denial-of-service attack (CVE-2023-44487). (#12705)
  • twisted.web.http.HTTPChannel.headerReceived now rejects a header value that contains a bare carriage return or line feed, closing a request-smuggling gap where such a value could hide a following header from the parser (RFC 9110 section 5.5). (#12754)

Deprecations and Removals


- `_makeGetterFactory` method in `twisted.web.client` has been removed.  We would not normally remark upon a private API's removal, but we are aware of some 3rd party usage. Please remember that you should not depend on private names within Twisted as they may be removed without notice! (#12721)


Misc
~~~~

- #12815


Mail
----

Bugfixes
~~~~~~~~

- twisted.mail.imap4.IMAP4Server now rejects a SEARCH command containing a literal with a negative octet count, so an authenticated client can no longer freeze the server with a crafted command. (#12763)
- twisted.mail.imap4 no longer allows clients to specify arbitrary regexes. (#12787)


Words
-----

Bugfixes
~~~~~~~~

- The domish XML element streams in twisted.words.xish (used to parse XMPP) now limit the byte size and element count of a single stanza, so a peer can no longer exhaust server memory by sending an unbounded stanza. (#12707)
- twisted.words.protocols.irc.IRC.dataReceived now limits the length of a single line, so a peer can no longer exhaust server memory by sending data without a line delimiter. (#12770)


Names
-----

Bugfixes
~~~~~~~~

- `twisted.names.dns.DNSDatagramProtocol.query` now discards query responses that
  come from hosts other than the one the query was issued to, preventing other
  hosts from injecting invalid DNS responses. (#12696)


Deprecations and Removals
  • twisted.names.dns.Message no longer has the class attributes queries, answers, add, or ns. (#12667)
  • twisted.names.client.ThreadedResolver, deprecated since Twisted 9.0, has been removed. (#12843)

Misc


- #12701


Trial
-----

Deprecations and Removals
-------------------------

- twisted.trial.runner.samefile is deprecated and replaced by os.path.samefile. (#12671)

Twisted 26.10.0rc2

Twisted 26.10.0rc2 Pre-release
Pre-release

Choose a tag to compare

@adiroiban adiroiban released this 27 Oct 01:44

twisted 26.10.0rc2 (2026-10-26)

Since 26.10.0rc1, this release added the fix for #12885.

This is the last release with support for Python 3.10.

This include fixes for:

Features

  • It is now possible to set the SO_REUSEPORT and SO_REUSEADDR TCP socket flags from user code. (#9101)
  • Python 3.14 is now supported. (#12640)
  • twisted.internet.defer.Deferred.__iter__, used when awaiting a Deferred, is now about 2-3% faster. (#12727)

Bugfixes

  • twisted.internet.tcp.Port.startListening() now closes the socket when raising CannotListenError. (#6108)
  • Initiating a TCP connection with an address literals and a port outside of the 1-65535 range in twisted.internet.tcp.BaseClient and twisted.internet.iocpreactor.tcp.Client now triggers an errback instead of an unhandled error. This change might also fix other unhandled errors occurred while connecting using address literals. (#7798)
  • twisted.logger.LoggingFile.fileno now raises io.UnsupportedOperation
    instead of returning -1.
    This fixes an interoperability issue with multiprocessing. (#9638)
  • twistd now exits with a non-zero status when given an unknown subcommand. (#12656)
  • twisted.internet.testing.MemoryReactor.removeAll() now returns what was removed to comply with IReactorFDSet.removeAll() (#12743)
  • twisted.internet.asyncioreactor.AsyncioSelectorReactor.callLater now has the
    same signature as twisted.internet.interfaces.IReactorTime.callLater.
    twisted.internet.asyncioreactor.AsyncioSelectorReactor.callFromThread now has the
    same signature as twisted.internet.interfaces.IReactorFromThreads.callFromThread. (#12767)
  • twisted.protocols.ftp.FTPClient now uses ip address of the original ftp server to open passive data connections by default, instead of trusting PASV responses. (#12847)

Improved Documentation

  • The “Writing Servers” and “UDP Networking” documentation pages have been updated to remove obsolete references to persisting the reactor (a feature gone from Twisted for several decades now), and to better explain the factory and protocol setup and teardown lifecycle. (#5031)
  • Twisted's policy documentation now includes a prominently featured, clear
    explanation of our AI policy: to wit, including the outputs of generative AI
    systems is forbidden. (#12676)

Deprecations and Removals

  • twisted.internet.tcp.Connection no longer supports returning a non-None value from a protocol's dataReceived method, deprecated since Twisted 11.0.0. (#12688)
  • twisted.internet.error.PotentialZombieWarning, deprecated since Twisted 10.0, has been removed. (#12744)
  • Implementations of twisted.internet.interfaces.IProcessProtocol are now required to provide a processExited method. Omitting this method was deprecated in Twisted 8.2. (#12824)
  • twisted.internet.ssl.protocolNegotiationMechanisms and twisted.internet.ssl.ProtocolNegotiationSupport are deprecated because all supported TLS backends provide ALPN. Callers can configure ALPN without checking for support. (#12868)

Misc

Conch

Features


- twisted.conch.ssh.transport.SSHServerTransport now supports the hybrid
  post-quantum key exchange algorithm mlkem768x25519-sha256. (#12520)


Bugfixes
  • twisted.conch.telnet.Telnet.dataReceived now limits how much data it buffers for a single telnet subnegotiation, so a peer can no longer exhaust server memory by sending a subnegotiation that is never terminated. (#12706)
  • To comply with RFC 4254 Section-6.5, twisted.conch.ssh.session.SSHSession will
    now enforce that only one "shell", "exec", or "subsystem" command will succeed
    per channel. (#12800)

Web

Features


- twisted.web.http.Request.write now performs chunked writes ~12% faster (#12729)


Bugfixes
  • twisted.web.websocket.WebSocketResource and twisted.web.websocket.WebSocketClientEndpoint will now deliver complete messages, rather than partial messages, to textMessageReceived and bytesMessageReceived on their WebSocketProtocol. (#12885)
  • twisted.web's HTTP/2 server now limits the rate at which a remote peer may reset streams, mitigating the HTTP/2 Rapid Reset denial-of-service attack (CVE-2023-44487). (#12705)
  • twisted.web.http.HTTPChannel.headerReceived now rejects a header value that contains a bare carriage return or line feed, closing a request-smuggling gap where such a value could hide a following header from the parser (RFC 9110 section 5.5). (#12754)

Deprecations and Removals


- `_makeGetterFactory` method in `twisted.web.client` has been removed.  We would not normally remark upon a private API's removal, but we are aware of some 3rd party usage. Please remember that you should not depend on private names within Twisted as they may be removed without notice! (#12721)


Misc
~~~~

- #12815


Mail
----

Bugfixes
~~~~~~~~

- twisted.mail.imap4.IMAP4Server now rejects a SEARCH command containing a literal with a negative octet count, so an authenticated client can no longer freeze the server with a crafted command. (#12763)
- twisted.mail.imap4 no longer allows clients to specify arbitrary regexes. (#12787)


Words
-----

Bugfixes
~~~~~~~~

- The domish XML element streams in twisted.words.xish (used to parse XMPP) now limit the byte size and element count of a single stanza, so a peer can no longer exhaust server memory by sending an unbounded stanza. (#12707)
- twisted.words.protocols.irc.IRC.dataReceived now limits the length of a single line, so a peer can no longer exhaust server memory by sending data without a line delimiter. (#12770)


Names
-----

Bugfixes
~~~~~~~~

- `twisted.names.dns.DNSDatagramProtocol.query` now discards query responses that
  come from hosts other than the one the query was issued to, preventing other
  hosts from injecting invalid DNS responses. (#12696)


Deprecations and Removals
  • twisted.names.dns.Message no longer has the class attributes queries, answers, add, or ns. (#12667)
  • twisted.names.client.ThreadedResolver, deprecated since Twisted 9.0, has been removed. (#12843)

Misc


- #12701


Trial
-----

Deprecations and Removals
-------------------------

- twisted.trial.runner.samefile is deprecated and replaced by os.path.samefile. (#12671)

Twisted 26.10.0rc1

Twisted 26.10.0rc1 Pre-release
Pre-release

Choose a tag to compare

@adiroiban adiroiban released this 22 Oct 17:05

twisted 26.10.0rc1 (2026-10-22)

This is the last release with support for Python 3.10.

This include fixes for:

Features

  • It is now possible to set the SO_REUSEPORT and SO_REUSEADDR TCP socket flags from user code. (#9101)
  • Python 3.14 is now supported. (#12640)
  • twisted.internet.defer.Deferred.__iter__, used when awaiting a Deferred, is now about 2-3% faster. (#12727)

Bugfixes

  • twisted.internet.tcp.Port.startListening() now closes the socket when raising CannotListenError. (#6108)
  • Initiating a TCP connection with an address literals and a port outside of the 1-65535 range in twisted.internet.tcp.BaseClient and twisted.internet.iocpreactor.tcp.Client now triggers an errback instead of an unhandled error. This change might also fix other unhandled errors occurred while connecting using address literals. (#7798)
  • twisted.logger.LoggingFile.fileno now raises io.UnsupportedOperation
    instead of returning -1.
    This fixes an interoperability issue with multiprocessing. (#9638)
  • twistd now exits with a non-zero status when given an unknown subcommand. (#12656)
  • twisted.internet.testing.MemoryReactor.removeAll() now returns what was removed to comply with IReactorFDSet.removeAll() (#12743)
  • twisted.internet.asyncioreactor.AsyncioSelectorReactor.callLater now has the
    same signature as twisted.internet.interfaces.IReactorTime.callLater.
    twisted.internet.asyncioreactor.AsyncioSelectorReactor.callFromThread now has the
    same signature as twisted.internet.interfaces.IReactorFromThreads.callFromThread. (#12767)
  • twisted.protocols.ftp.FTPClient now uses ip address of the original ftp server to open passive data connections by default, instead of trusting PASV responses. (#12847)

Improved Documentation

  • The “Writing Servers” and “UDP Networking” documentation pages have been updated to remove obsolete references to persisting the reactor (a feature gone from Twisted for several decades now), and to better explain the factory and protocol setup and teardown lifecycle. (#5031)
  • Twisted's policy documentation now includes a prominently featured, clear
    explanation of our AI policy: to wit, including the outputs of generative AI
    systems is forbidden. (#12676)

Deprecations and Removals

  • twisted.trial.runner.samefile is deprecated and replaced by os.path.samefile. (#12671)
  • twisted.internet.tcp.Connection no longer supports returning a non-None value from a protocol's dataReceived method, deprecated since Twisted 11.0.0. (#12688)
  • twisted.internet.error.PotentialZombieWarning, deprecated since Twisted 10.0, has been removed. (#12744)
  • Implementations of twisted.internet.interfaces.IProcessProtocol are now required to provide a processExited method. Omitting this method was deprecated in Twisted 8.2. (#12824)
  • twisted.internet.ssl.protocolNegotiationMechanisms and twisted.internet.ssl.ProtocolNegotiationSupport are deprecated because all supported TLS backends provide ALPN. Callers can configure ALPN without checking for support. (#12868)

Misc

Conch

Features


- twisted.conch.ssh.transport.SSHServerTransport now supports the hybrid
  post-quantum key exchange algorithm mlkem768x25519-sha256. (#12520)


Bugfixes
  • twisted.conch.telnet.Telnet.dataReceived now limits how much data it buffers for a single telnet subnegotiation, so a peer can no longer exhaust server memory by sending a subnegotiation that is never terminated. (#12706)
  • To comply with RFC 4254 Section-6.5, twisted.conch.ssh.session.SSHSession will
    now enforce that only one "shell", "exec", or "subsystem" command will succeed
    per channel. (#12800)

Web

Features


- twisted.web.http.Request.write now performs chunked writes ~12% faster (#12729)


Bugfixes
  • twisted.web's HTTP/2 server now limits the rate at which a remote peer may reset streams, mitigating the HTTP/2 Rapid Reset denial-of-service attack (CVE-2023-44487). (#12705)
  • twisted.web.http.HTTPChannel.headerReceived now rejects a header value that contains a bare carriage return or line feed, closing a request-smuggling gap where such a value could hide a following header from the parser (RFC 9110 section 5.5). (#12754)

Deprecations and Removals


- `_makeGetterFactory` method in `twisted.web.client` has been removed.  We would not normally remark upon a private API's removal, but we are aware of some 3rd party usage. Please remember that you should not depend on private names within Twisted as they may be removed without notice! (#12721)


Misc
~~~~

- #12815


Mail
----

Bugfixes
~~~~~~~~

- twisted.mail.imap4.IMAP4Server now rejects a SEARCH command containing a literal with a negative octet count, so an authenticated client can no longer freeze the server with a crafted command. (#12763)
- twisted.mail.imap4 no longer allows clients to specify arbitrary regexes. (#12787)


Words
-----

Bugfixes
~~~~~~~~

- The domish XML element streams in twisted.words.xish (used to parse XMPP) now limit the byte size and element count of a single stanza, so a peer can no longer exhaust server memory by sending an unbounded stanza. (#12707)
- twisted.words.protocols.irc.IRC.dataReceived now limits the length of a single line, so a peer can no longer exhaust server memory by sending data without a line delimiter. (#12770)


Names
-----

Bugfixes
~~~~~~~~

- `twisted.names.dns.DNSDatagramProtocol.query` now discards query responses that
  come from hosts other than the one the query was issued to, preventing other
  hosts from injecting invalid DNS responses. (#12696)


Deprecations and Removals
  • twisted.names.dns.Message no longer has the class attributes queries, answers, add, or ns. (#12667)
  • twisted.names.client.ThreadedResolver, deprecated since Twisted 9.0, has been removed. (#12843)

Misc


- #12701


Trial
-----

No significant changes.

Twisted 26.4.0

Choose a tag to compare

@adiroiban adiroiban released this 11 May 11:23

Twisted 26.4.0 (2026-05-11)

This is the last release with support for Python 3.9.

Security

  • twisted.names was fix for Denial of Service (DoS) attack via resource exhaustion during DNS name decompression.
    Reported and fixed by Tomas Illuminati Balbin CVE-2026-42304 (#12626)

Features

  • twisted.internet.ssl.CertificateOptions has a new constructor argument, contextForServerName, which takes a callback that will get invoked when a client sends a server name indication, with the sent servername, and returns a new OpenSSL.SSL.Context that the connection will switch to. (#4887)
  • twisted.internet.endpoints.serverFromString now supports the tls endpoint
    type, which allows you to do twist web --listen=tls:.../certbot-dir/config/live pointed at a certbot live
    configuration directory and have your certbot certificates automatically
    discovered and served appropriately. (#9885)
  • twisted.internet.reactor now has type annotations and will appear to be an object of an appropriate type, allowing for idiomatic common usages with correct type information. (#9909)
  • twisted.conch.ssh.SSHUserAuthServer now supports the security key ssh types "[email protected]" and "[email protected]" and extracting the application property from these new key types. (#12212)

Bugfixes

  • twisted.mail.smtp will now return a meaningful Failure when TLS validation fails. (#10210)
  • TLS version range constraints passed to twisted.internet.ssl.CertificateOptions are now properly respected rather than excluding the version being passed as the desired constraint. (#10232)
  • A potential reference cycle that might cause intermittent memory spikes while
    using twisted.internet.defer.inlineCallbacks was removed. (#12120)
  • Trial no longer emits the error RuntimeWarning: TestResult has no addDuration method when running PyUnit tests. (#12229)
  • twisted.python.rebuild.rebuild() now handles changes to sys.modules gracefully. Prior to the change, it could possibly raise a "dictionary changed size during iteration" error if the module list changed. (#12458)
  • twisted.internet.protocol.ReconnectingClientFactory: Don't multiply by factor for initial delay, but use initialDelay directly. (#12478)
  • twisted.internet.ssl and twisted.protocols.tls no longer mutate the pyOpenSSL context after creating pyOpenSSL connections, maintaining compatibility with an upcoming version of pyOpenSSL and increasing reliability (possibly even fixing a very rare segfault) (#12500)
  • twisted.internet.testing.MemoryReactor.callWhenRunning now invokes the callback immediately, if already started. (#12514)
  • Twisted now correctly detects EOF on OpenSSL 4. (#12632)

Improved Documentation

  • The example code from the documentation describing how to create a custom DNS server was updated to Python3. (#12480)
  • Type annotations now use modern PEP 585 built-in generics and PEP 604 union syntax throughout the project. (#12556)

Deprecations and Removals

  • Support for the obsolete TLS "Next Protocol Negotiation" has been removed from
    twisted.protocols.tls. (#9588)
  • Remove support for python3.8. (#12462)

Misc

Conch

Web

Mail

No significant changes.

Words

No significant changes.

Names

Bugfixes

  • twisted.names now does not throw an error when attempting to load bind zone file. (#11972)
  • twisted.names was fix for Denial of Service (DoS) attack via resource exhaustion during DNS name decompression. CVE-2026-42304 (#12626)

Trial

Twisted 26.4.0rc2

Twisted 26.4.0rc2 Pre-release
Pre-release

Choose a tag to compare

@adiroiban adiroiban released this 29 Apr 15:43

Twisted 26.4.0rc2 (2026-04-29)

This is the last release with support for Python 3.9.

Security

  • twisted.names was fix for Denial of Service (DoS) attack via resource exhaustion during DNS name decompression.
    Reported and fixed by Tomas Illuminati Balbin CVE-2026-42304 (#12626)

Features

  • twisted.internet.ssl.CertificateOptions has a new constructor argument, contextForServerName, which takes a callback that will get invoked when a client sends a server name indication, with the sent servername, and returns a new OpenSSL.SSL.Context that the connection will switch to. (#4887)
  • twisted.internet.endpoints.serverFromString now supports the tls endpoint
    type, which allows you to do twist web --listen=tls:.../certbot-dir/config/live pointed at a certbot live
    configuration directory and have your certbot certificates automatically
    discovered and served appropriately. (#9885)
  • twisted.internet.reactor now has type annotations and will appear to be an object of an appropriate type, allowing for idiomatic common usages with correct type information. (#9909)
  • twisted.conch.ssh.SSHUserAuthServer now supports the security key ssh types "[email protected]" and "[email protected]" and extracting the application property from these new key types. (#12212)

Bugfixes

  • twisted.internet.mail will now return a meaningful Failure when TLS validation fails. (#10210)
  • TLS version range constraints passed to twisted.internet.ssl.CertificateOptions are now properly respected rather than excluding the version being passed as the desired constraint. (#10232)
  • A potential reference cycle that might cause intermittent memory spikes while
    using twisted.internet.defer.inlineCallbacks was removed. (#12120)
  • Trial no longer emits the error RuntimeWarning: TestResult has no addDuration method when running PyUnit tests. (#12229)
  • twisted.python.rebuild.rebuild() now handles changes to sys.modules gracefully. Prior to the change, it could possibly raise a "dictionary changed size during iteration" error if the module list changed. (#12458)
  • twisted.internet.protocol.ReconnectingClientFactory: Don't multiply by factor for initial delay, but use initialDelay directly. (#12478)
  • twisted.internet.ssl and twisted.protocols.tls no longer mutate the pyOpenSSL context after creating pyOpenSSL connections, maintaining compatibility with an upcoming version of pyOpenSSL and increasing reliability (possibly even fixing a very rare segfault) (#12500)
  • twisted.internet.testing.MemoryReactor.callWhenRunning now invokes the callback immediately, if already started. (#12514)
  • Twisted now correctly detects EOF on OpenSSL 4. (#12632)

Improved Documentation

  • The example code from the documentation describing how to create a custom DNS server was updated to Python3. (#12480)
  • Type annotations now use modern PEP 585 built-in generics and PEP 604 union syntax throughout the project. (#12556)

Deprecations and Removals

  • Support for the obsolete TLS "Next Protocol Negotiation" has been removed from
    twisted.protocols.tls. (#9588)
  • Remove support for python3.8. (#12462)

Misc

Conch

Web

Mail

No significant changes.

Words

No significant changes.

Names

Bugfixes

  • twisted.names now does not throw an error when attempting to load bind zone file. (#11972)
  • twisted.names was fix for Denial of Service (DoS) attack via resource exhaustion during DNS name decompression. CVE-2026-42304 (#12626)

Trial

Twisted 26.4.0rc1

Twisted 26.4.0rc1 Pre-release
Pre-release

Choose a tag to compare

@adiroiban adiroiban released this 29 Apr 15:36

Not published to PyPi due to a bug in our release CI/CD

Twisted 25.5.0

Choose a tag to compare

@adiroiban adiroiban released this 07 Jun 09:51

Twisted 25.5.0 (2025-06-07)

Bugfixes

  • twisted.internet.runner.procmon.ProcessMonitor: startProcess() catches
    exceptions raised by reactor.spawnProcess() and attempts to restart
    the failed process. (#12421)

Deprecations and Removals

  • twisted.trial.unittest.TestCase.deferSetUp,
    twisted.trial.unittest.TestCase.deferTestMethod,
    twisted.trial.unittest.TestCase.deferTearDown, and
    twisted.trial.unittest.TestCase.deferRunCleanups were removed and
    converted to private methods. These functions expose so much of the
    internal structure of TestCase that it makes the code hard to change.
    (#12388)
  • twisted.internet.defer.waitForDeferred
    twisted.internet.defer.deferredGenerator have been removed. They have
    been deprecated since Twisted 15.0.0 (#12404)
  • twisted.internet.defer.Deferred.callbacks attribute has been
    deprecated. (#12407)

Misc

Conch

Bugfixes

  • twisted.conch.client.direct.SSHClientTransport.verifyHostKey no longer
    crashes with an encoding error while attempting to verify the peer's
    IP address. This means that the conch
    command-line tool will no longer fail host key verification with 'bad
    host key' when using a known hosts file containing only plaintext,
    rather than hashed, hostnames. (#12414)

Web

Features

  • The twisted.web.websockets module has been added, adding a websockets
    server and client based on the wsproto library. (#4173)
  • twisted.web.server.Site can now be created with a
    parsePOSTFormSubmission=False parameter to disable parsing of HTTP
    request bodies. (#12412)

Bugfixes

  • twisted.web.http.Request.addCookie now supports the
    none value for cookie's
    samesite attribute. (#10088)
  • twisted.web.http.Request.requestReceived now handles multiple files in
    multipart/form-data with the same "name" parameter. This was a
    regression introduced in Twisted 24.3.0. (#12423) (#12423)

Improved Documentation

  • An error in the example for using a Resource object in th
    documentation on Configuring and Using the Twisted Web Server has been
    correctd.

    Furthermore, a number of references to "strings" where "bytes" where
    expected has been adjusted. (#12410)

Mail

Bugfixes

  • twisted.mail.mail.MailService.addDomain now adds the given domain's
    credential checkers to the service's portal, allowing users to
    authenticate to the domain. (#12431)

Words

No significant changes.

Names

No significant changes.

Trial

Bugfixes

  • twisted.trial.unittest.TestCase.addCleanup will cause the test to fail
    if the returned deferred is not resolved before the test's timeout.
    (#12390)

Twisted 25.5.0rc1

Twisted 25.5.0rc1 Pre-release
Pre-release

Choose a tag to compare

@adiroiban adiroiban released this 25 May 00:42

Twisted 25.5.0rc1 (2025-05-09)

Bugfixes

  • twisted.internet.runner.procmon.ProcessMonitor: startProcess() catches
    exceptions raised by reactor.spawnProcess() and attempts to restart
    the failed process. (#12421)

Deprecations and Removals

  • twisted.trial.unittest.TestCase.deferSetUp,
    twisted.trial.unittest.TestCase.deferTestMethod,
    twisted.trial.unittest.TestCase.deferTearDown, and
    twisted.trial.unittest.TestCase.deferRunCleanups were removed and
    converted to private methods. These functions expose so much of the
    internal structure of TestCase that it makes the code hard to change.
    (#12388)
  • twisted.internet.defer.waitForDeferred
    twisted.internet.defer.deferredGenerator have been removed. They have
    been deprecated since Twisted 15.0.0 (#12404)
  • twisted.internet.defer.Deferred.callbacks attribute has been
    deprecated. (#12407)

Misc

Conch

Bugfixes

  • twisted.conch.client.direct.SSHClientTransport.verifyHostKey no longer
    crashes with an encoding error while attempting to verify the peer's
    IP address. This means that the conch
    command-line tool will no longer fail host key verification with 'bad
    host key' when using a known hosts file containing only plaintext,
    rather than hashed, hostnames. (#12414)

Web

Features

  • The twisted.web.websockets module has been added, adding a websockets
    server and client based on the wsproto library. (#4173)
  • twisted.web.server.Site can now be created with a
    parsePOSTFormSubmission=False parameter to disable parsing of HTTP
    request bodies. (#12412)

Bugfixes

  • twisted.web.http.Request.addCookie now supports the
    none value for cookie's
    samesite attribute. (#10088)
  • twisted.web.http.Request.requestReceived now handles multiple files in
    multipart/form-data with the same "name" parameter. This was a
    regression introduced in Twisted 24.3.0. (#12423) (#12423)

Improved Documentation

  • An error in the example for using a Resource object in th
    documentation on Configuring and Using the Twisted Web Server has been
    correctd.

    Furthermore, a number of references to "strings" where "bytes" where
    expected has been adjusted. (#12410)

Mail

Bugfixes

  • twisted.mail.mail.MailService.addDomain now adds the given domain's
    credential checkers to the service's portal, allowing users to
    authenticate to the domain. (#12431)

Words

No significant changes.

Names

No significant changes.

Trial

Bugfixes

  • twisted.trial.unittest.TestCase.addCleanup will cause the test to fail
    if the returned deferred is not resolved before the test's timeout.
    (#12390)

Twisted 24.11.0

Choose a tag to compare

@adiroiban adiroiban released this 02 Dec 09:42

Twisted 24.11.0 (2024-12-02)

No changes since 24.11.0rc2.

In comparison to 24.11.0rc1, this release includes and update to do the PyPI release using the trusted publisher functionality of PyPI.

Features

  • Twisted's implementations of
    twisted.internet.interfaces.IReactorMulticast now accept IPv6
    literals and allow for IPv6 multicast. (#6597)
  • TCP throughput when sending data is slightly faster. (#12334)

Bugfixes

  • twisted.internet.endpoints.clientFromString can handle "tls:"
    endpoints with default [bindAddress]{.title-ref}. This was a
    regression introduced in 24.10.0. (#12350)
  • HTTP server can handle listening on filesystem UNIX sockets. This
    was a regression introduced in 24.10.0. (#12365)
  • twisted.internet.tcp.Connection.setTcpNoDelay was updated to fix a
    potential failure when setting TCP_NODELAY on macOS. (#12372)

Deprecations and Removals

  • twisted.python.constants, deprecated since 16.5.0, has been removed.
    (#12361)

Misc

Conch

No significant changes.

Web

No significant changes.

Mail

Bugfixes

  • twisted.mail.imap.IMAPServer.arg_fetchatt can now detect that a IMAP
    partial request has been made that is longer than the original
    message and alter the output of the response in order to match the
    IMAPRev4 spec. (#12345)

Words

No significant changes.

Names

No significant changes.

Trial

No significant changes.

Twisted 24.11.0rc2

Twisted 24.11.0rc2 Pre-release
Pre-release

Choose a tag to compare

@adiroiban adiroiban released this 02 Dec 09:14

Twisted 24.11.0rc2 (2024-12-02)

In comparison to 24.11.0rc1, this release includes and update to do the PyPI release using the trusted publisher functionality of PyPI.

Features

  • Twisted's implementations of
    twisted.internet.interfaces.IReactorMulticast now accept IPv6
    literals and allow for IPv6 multicast. (#6597)
  • TCP throughput when sending data is slightly faster. (#12334)

Bugfixes

  • twisted.internet.endpoints.clientFromString can handle "tls:"
    endpoints with default [bindAddress]{.title-ref}. This was a
    regression introduced in 24.10.0. (#12350)
  • HTTP server can handle listening on filesystem UNIX sockets. This
    was a regression introduced in 24.10.0. (#12365)
  • twisted.internet.tcp.Connection.setTcpNoDelay was updated to fix a
    potential failure when setting TCP_NODELAY on macOS. (#12372)

Deprecations and Removals

  • twisted.python.constants, deprecated since 16.5.0, has been removed.
    (#12361)

Misc

Conch

No significant changes.

Web

No significant changes.

Mail

Bugfixes

  • twisted.mail.imap.IMAPServer.arg_fetchatt can now detect that a IMAP
    partial request has been made that is longer than the original
    message and alter the output of the response in order to match the
    IMAPRev4 spec. (#12345)

Words

No significant changes.

Names

No significant changes.

Trial

No significant changes.