psanford / wormhole-william

End-to-end encrypted file transfer. A magic wormhole CLI and API in Go (golang).
MIT License
1.08k stars 55 forks source link

Handle context cancels of pending connections #50

Closed psanford closed 3 years ago

psanford commented 3 years ago

Previously if one side attempted to connect and the other side never joined, the client would block waiting for rendezvous messages and canceling would do nothing.

Now if the client is waiting for a message from the rendezvous server, a context cancel will unblock the client and trigger an error.