Transit Relay server for Magic-Wormhole
Go to file
Joe Harrison 45824ca5d6 Use StringTransportWithDisconnection for transit server tests.
Replace the use of TCP in the test suite with Twisted's
StringTransport, specifically StringTransportWithDisconnection which
allows us to trigger a disconnect event on the server side during testing.

The `dataReceived` method on the server is now called directly, and any
effects will be realised immediately.
Responses are available to the test client using the `value()` method of
the transport objects, and the buffer can be cleared using `clear()`.

This allows all asynchronous behaviour to be removed from the transit
server test suite.
Furthermore, as we never have to wait for the server, tests no longer
hang if they fail: the errors are encountered immediately.
2020-05-23 17:18:47 -07:00
docs docs: explain --blur-usage= better 2020-05-21 21:08:34 -07:00
misc munin: fix +x on wormhole_transit_events_alltime 2018-03-28 14:23:50 -07:00
src Use StringTransportWithDisconnection for transit server tests. 2020-05-23 17:18:47 -07:00
.appveyor.yml travis/tox/appveyor: remove py3.3 and py3.4 2019-09-10 23:07:09 -07:00
.coveragerc move transit-relevant files out from magic-wormhole 2017-09-12 23:52:21 -07:00
.gitattributes move transit-relevant files out from magic-wormhole 2017-09-12 23:52:21 -07:00
.gitignore git-ignore twisted dropin.cache 2017-09-13 17:25:39 -07:00
.travis.yml travis/tox/appveyor: remove py3.3 and py3.4 2019-09-10 23:07:09 -07:00
LICENSE Initial commit 2017-09-12 23:35:46 -07:00
MANIFEST.in setup/MANIFEST: fix packaging issues 2017-11-12 15:55:09 -08:00
NEWS.md update NEWS for 0.2.1 release 2019-09-11 00:25:26 -07:00
README.md README: add appveyor badge 2018-02-19 12:41:31 -08:00
setup.cfg move transit-relevant files out from magic-wormhole 2017-09-12 23:52:21 -07:00
setup.py setup/MANIFEST: fix packaging issues 2017-11-12 15:55:09 -08:00
tox.ini travis/tox/appveyor: remove py3.3 and py3.4 2019-09-10 23:07:09 -07:00
versioneer.py move transit-relevant files out from magic-wormhole 2017-09-12 23:52:21 -07:00

magic-wormhole-transit-relay

PyPI Build Status Windows Build Status codecov.io

Transit Relay server for Magic-Wormhole

This repository implements the Magic-Wormhole "Transit Relay", a server that helps clients establish bulk-data transit connections even when both are behind NAT boxes. Each side makes a TCP connection to this server and presents a handshake. Two connections with identical handshakes are glued together, allowing them to pretend they have a direct connection.

This server used to be included in the magic-wormhole repository, but was split out into a separate repo to aid deployment and development.

See docs/running.md for instructions to launch the server.