-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI run against Twisted trunk is failing #16728
Comments
For ease of access:
Some more clueless rooting in source (https://github.com/twisted/twisted/blob/d827ff43cc97495f54cf14d0b65a7af42f52c161/src/twisted/internet/interfaces.py#L2129) ITransport is an abstract interface which indeed does not have a method "abortConnection" defined. It is implemented by 2 other classes ITCPTransport which does define abortConnection and by IUNIXTransport (a Transport for stream-oriented unix domain connections.) which does not. So indeed, we can not be sure that abortConnection exists until we are sure that request.transport is of the ITCPTransport kind (which it will always be in synapse, I guess???) To make mypy happy, one would either have to
|
`ITransport.abortConnection` isn't a thing, but `HTTPChannel.forceAbortClient` calls it, so lets just use that Fixes #16728
See https://github.com/element-hq/synapse/actions/runs/8643480271
The text was updated successfully, but these errors were encountered: