Brian Warner
3c0f832bdc
test that mailbox timestamp is updated correctly
2016-06-24 16:25:44 -07:00
Brian Warner
404925d314
server: mailbox row should always exist
...
This makes the nameplate's "mailbox_id" into a foreign-key.
2016-06-24 16:02:37 -07:00
Brian Warner
41f229de87
use 'mailbox_sides' instead of cols in 'mailboxes'
2016-06-24 00:01:51 -07:00
Brian Warner
6c725e4a86
db: use 'nameplate_sides' instead of cols in 'nameplates'
2016-06-23 18:27:26 -07:00
Brian Warner
74a1902fcd
schema: add v3, rename nameplates.id to .name
2016-06-23 18:27:26 -07:00
meejah
07b4067727
unit-test for relay request, and fix Data() handling
2016-06-20 16:32:07 -07:00
laharah
bb970dafc0
u""
cleanup on test_server.py
2016-06-04 14:09:19 -07:00
laharah
6a73d50fdd
added unicode_literals import to all apropriate modules
...
bug in twisted serverFromString prevents test.common and transit
from using unicode properly should revisit if twisted gets patched
2016-06-04 12:42:59 -07:00
Brian Warner
52e5cbd690
INCOMPATIBILITY: send "current_cli_version", not "current_version"
...
The reasoning is that this string is only ever likely to refer to the
version of the primary/initial client (the CLI application, written in
Python, that you get with "pip install magic-wormhole"). When there are
other implementations, with unrelated versions, they should obviously
not pay attention to a warning about the other implementation being out
of date.
2016-05-28 19:11:27 -07:00
Brian Warner
5fe7d320ab
oops, pass blur_usage to apps properly, add tests
2016-05-27 18:44:41 -07:00
Brian Warner
eebc9ebd54
rewrite pruning, add full tests
...
Apparently it was broken: the first time the LoopingCall fired, it would
throw an exception, and never try again. Now it should be fixed.
2016-05-27 18:42:17 -07:00
Brian Warner
528092dd97
improve error signalling
2016-05-23 00:14:39 -07:00
Brian Warner
c10fd98167
many tests working
...
* add "released" ack-response for "release" command, to sync w.close()
* move websocket URL to root
* relayurl= should now be a "ws://" URL
* many tests pass (except for test_twisted, which will be removed, and
test_scripts)
* still moving integration tests from test_twisted to
test_wormhole.Wormholes
2016-05-22 18:40:44 -07:00
Brian Warner
0ee56e12b0
change 'list' protocol, make room for nameplate attributes
2016-05-22 11:01:44 -07:00
Brian Warner
181ef04a91
break out more message components, use SidedMessage
2016-05-20 16:39:59 -07:00
Brian Warner
3b86571de3
fix py3
2016-05-20 12:12:07 -07:00
Brian Warner
390cd08b53
better command/response names: allocate+allocated, claim+claimed
2016-05-20 11:35:30 -07:00
Brian Warner
6c5b517ad1
hush
2016-05-20 11:10:17 -07:00
Brian Warner
ce06d379d9
remove old tests
2016-05-20 11:09:45 -07:00
Brian Warner
0a14901e94
full coverage of websocket
2016-05-20 11:08:10 -07:00
Brian Warner
f044ef0efa
tests almost good
2016-05-19 23:50:22 -07:00
Brian Warner
335ed00cb7
build out tests
2016-05-19 19:55:11 -07:00
Brian Warner
2ea5d96290
Channels don't need "welcome" anymore
2016-05-17 17:35:44 -07:00
Brian Warner
5dd91c7311
test too-many-allocate, allocate+claim
2016-05-13 00:46:12 -07:00
Brian Warner
c4c0cf71eb
add test
2016-05-13 00:43:59 -07:00
Brian Warner
1198977e06
SCHEMA CHANGE: channelids are now strs, not ints
...
This will enable the use of large randomly-generated hex or base32
channelids, for post-startup or resumed-connection channels.
2016-05-13 00:37:53 -07:00
Brian Warner
c14e982ae7
rendezvous: allow multiple channels per connection
2016-05-12 18:01:56 -07:00
Brian Warner
85dc0fd41b
change server API: "release" instead of "deallocate"
2016-05-12 17:46:15 -07:00
Brian Warner
a34fb2a98b
remove plain-HTTP (non-WebSocket) rendezvous server
2016-05-12 16:56:19 -07:00
Brian Warner
5530c33185
rdv_ws: send acks for each message
...
but only if the client is modern enough to include "id" in the message,
which lets us avoid sending acks to an 0.7.5 client (which would cause
them to abort, they don't like unrecognized server messages).
The acks let the client learn the server_rx time of messages that
terminate on the server, like "allocate" and "claim".
2016-05-06 18:51:28 -07:00
Brian Warner
644c7c6840
DB schema change: add/store/return msgid
...
This enables dump-timing to correlate sender logs with receiver logs.
2016-05-06 18:29:58 -07:00
Brian Warner
8a80242532
rdv_ws: deliver "server_tx", not "sent"
...
Update twisted/transcribe.py to accept it, update tests.
2016-05-06 18:29:58 -07:00
Brian Warner
d2dfc325d8
deliver stored server_rx to clients
...
This enables the "dump-timing" tools to display more information.
2016-05-06 18:29:58 -07:00
Brian Warner
fe2dfc1a35
DB schema change: rename 'when' to 'server_rx'
2016-05-06 18:29:58 -07:00
Brian Warner
b2c3f49038
unsplit txwormhole step 2: edit files
2016-04-20 19:18:41 -07:00
Brian Warner
7c45f3d472
unsplit wormhole_server step 2: edit files
2016-04-20 19:15:33 -07:00
Brian Warner
7a5a99a1a8
unsplit tests step 3: modify files
2016-04-20 18:54:10 -07:00
Brian Warner
c890a850aa
unsplit tests step 1: move files
2016-04-20 18:44:33 -07:00
Brian Warner
95706c752c
move tests step 1: rename files
2016-04-18 16:45:03 -07:00
Brian Warner
1688da74d9
split txwormhole step 2: fix imports
2016-04-18 16:41:56 -07:00
Brian Warner
87266f1292
split wormhole_server step 3: fix tests
2016-04-18 16:18:51 -07:00
Brian Warner
8c67a98259
merge test_transit.py into test_server.py
2016-04-18 15:52:29 -07:00
Brian Warner
626732b730
relay_server: include 'sent' timestamp with each message
...
This will be used by client-side timeline instrumentation, to guide
performance improvements.
2016-03-03 17:52:59 -08:00
Brian Warner
bd912a73ee
Transit: blur the file sizes too
2016-01-12 16:32:38 -08:00
Brian Warner
9ed39be346
don't log HTTP requests when blur-usage is on
2015-12-04 17:35:56 -08:00
Brian Warner
1ab66d2fd0
privacy: only store coarse timestamps in the usage table
2015-12-03 21:15:19 -08:00
Brian Warner
80603aaa32
finish py3/async support, needs Twisted >= 15.5.0
...
The latest Twisted fixes the web.Agent code we need for proper async
support. There's still a daemonization bug that prevents 'wormhole
server start' from succeeding (it hangs).
2015-12-01 00:15:24 -06:00
Brian Warner
2318c94169
test_server: error properly when EventSource fails
2015-11-23 16:49:46 -08:00
Brian Warner
c482c248ff
server: add "watch" endpoint, deprecate non-ES "get"
...
I'm planning to leave non-EventSource "/get" in until after 0.6.0, then
remove it. I think it's cleaner for the logs to have the two
forms (EventSource and immediate) use different URLs.
2015-11-23 16:43:25 -08:00
Brian Warner
badf5168ef
test_server: rename some functions
2015-11-22 18:06:42 -08:00