-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
move go-ws-transport here #1422
Conversation
This fixes websocket interop with js-ipfs
fix: use binary frames instead of text frames
feat: upgrade to use gorilla/websocket
fix reading from conn and addresses
1. Ensure we only close the connection once. Especially, don't call the done function multiple times and/or concurrently. 2. Call WriteControl instead of WriteMessage in Close. WriteControl is thread-safe, WriteMessage isn't. Also, this sets a 100ms deadline on gracefully closing connections.
Just to be thorough.
(make @whyrusleeping happy)
Make close thread safe
sync: update CI config files
remove deprecated type
chore: update go-libp2p-transport-upgrader and go-libp2p-core
use the transport.Upgrader interface
use the resource manager
add support for wss dialing
add support for listening on /wss addresses
csms "github.com/libp2p/go-conn-security-multistream" | ||
mplex "github.com/libp2p/go-libp2p-mplex" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should probably wait for these to be moved first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? go-libp2p depending on external repos is ok (the other way around would not).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, but we'll have to remember to fix it!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course. I do a sed
for the import path every time I move a repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alright, fair enough.
Part of #1187.