Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Set up logging for unused codes in last 24 hours for any server issues #498

Open
Liz315 opened this issue Apr 10, 2017 · 5 comments
Open
Assignees

Comments

@Liz315
Copy link
Member

Liz315 commented Apr 10, 2017

Set up logging for unused codes in last 24 hours for any server issues (unless Brian gets the state stuff done before us) on the LA magic wormhole server

@meejah
Copy link
Contributor

meejah commented Apr 10, 2017

I don't think we need this on the wormhole server, do we?

The "other end" of the wormhole can determine if a code was used successfully or not (i.e. either it timed out and we closed it, or something connected). We also would want a way for users of GridSync to say "it didn't work".

@crwood
Copy link
Member

crwood commented Apr 10, 2017

I believe this Issue is geared more towards having a durable on-disk record of pending invites so that the wormhole server state could be more easily restored in the event of a server crash or restart.

@meejah
Copy link
Contributor

meejah commented Apr 10, 2017

Oh, I see: so this feature is actually: the wormhole server currently nukes all pending connections if you restart it, so we'd like to be able to know if we actually lost any in-progress invites. Or at least see if there are any pending before we restart?

(But then that doesn't matter when wormhole can restart and continue pending connections).

@crwood
Copy link
Member

crwood commented Apr 10, 2017

Correct.

It looks like some of Brian's recent work (here and elsewhere) will soon make this a non-Issue though.

@exarkun
Copy link
Contributor

exarkun commented Feb 9, 2018

I think the state machine changes in wormhole only helps a little bit. From https://magic-wormhole.readthedocs.io/en/latest/server-protocol.html#persistence:

The client library knows how to resume the protocol after a reconnection event,
assuming the client process itself continues to run.

That's good but by far the more common case for an interrupted connection to the wormhole server is due to the deployment being updated and our wormhole client being restarted. We'll have to implement our own persistence and reconnect logic to make it possible to survive this scenario.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants