-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Conversation
…ent our own Agent
Conflicts: synapse/python_dependencies.py
could you please also bump version in |
Conflicts: synapse/http/matrixfederationclient.py
LGTM |
Update to Twisted-15.2.1.
Was just perusing this project (looks very cool!) and noticed it used Twisted; can I just say, it warms my heart that you folks are actually taking care to adopt new APIs like this! :-D |
@glyph :) Twisted has served us pretty well - thank you for creating it! That said, we have been bitten pretty badly by https://twistedmatrix.com/trac/ticket/4362 (lack of IPv6 resolver for Agent) though - many people dismiss Matrix because of not supporting IPv6 for federation. If there is anything that can be done here we would owe you eternal thanks... O:-) |
Fantastic.
This is actually annoying me quite a bit as well! Honestly I'm kind of glad somebody noticed; IPv6 is so subtle and sadly niche that folks often don't notice it or don't think to report it. In fact it's what I'm working on right now (although I'm addressing some infrastructure issues that make it hard to test first). (You can read a bit more about my personal story with IPv6 here.) |
At long last, we have a PR up for review… twisted/twisted#624 |
@ara4n - hopefully still in time for those eternal thanks? :) |
fantastic! we've been keeping half an eye on the progress of https://twistedmatrix.com/trac/ticket/4362, and meanwhile @kyrias was also looking at it a few days ago. Does this mean that we can just replace our current SSL4ClientEndpoint and TCP4ClientEndpoint from https://github.com/matrix-org/synapse/blob/master/synapse/http/endpoint.py#L16 with HostnameEndpoint and it may just magically work?! :D Eternal thanks have been growing exponentially since we last spoke and should positively overflow once the PR lands! |
@ara4n - It doesn't look like that's using Let me back up. The building blocks to do this yourself have existed for some time - the last block ( |
Probably it would be faster for me to send a quick proof-of-concept PR than to describe further... |
Here's one - #1689 |
And here's another - #1690 |
Neither of those PRs actually work, and I imagine there's some re-tooling to be done on the test suite to get them to, but hopefully they should give you the idea that this should be really quite simple to implement. |
On the HTTP client side, the twisted ticket PR has landed, so it should be available by default in the next release. |
Use Agent.usingEndpointFactory rather than accessing the internals of twisted to implement our own agent