Alex Browne
4979f94d4e
Guarantee reading happens in order and add some comments
5 years ago
Alex Browne
486168bb29
Make it possible to run browser tests with a single go test command
5 years ago
Alex Browne
a7676729b1
Implement bare bones Wasm support (needs to be cleaned up)
5 years ago
Steven Allen
4b1b55115e
Merge pull request #54 from libp2p/fix/graceful-close
fix: close gracefully
5 years ago
Steven Allen
7f87ef83e4
fix: close gracefully
If we send no message, the client gets a 1005. This will send a 1000.
5 years ago
Steven Allen
ac7f16bc43
Merge pull request #53 from libp2p/dep/update
dep: update and switch to go-multiaddr-fmt
5 years ago
Steven Allen
6de8743b2b
dep: update and switch to go-multiaddr-fmt
5 years ago
Steven Allen
44c0579f94
Merge pull request #52 from libp2p/fix/global-multiaddr-registry
move multiaddr protocol definitions to go-multiaddr
5 years ago
Steven Allen
7b972a034c
move multiaddr protocol definitions to go-multiaddr
That way, users don't need to import the transport just to parse a websocket
multiaddr.
5 years ago
Raúl Kripalani
3255249d4e
migrate to consolidated types. ( #45 )
6 years ago
Steven Allen
8eef3f7fe6
Merge pull request #44 from libp2p/fix/double-error-write
fix: don't try to write an error twice
6 years ago
Steven Allen
a2d70a7084
fix: don't try to write an error _twice_.
The websocket upgrader does this for us.
6 years ago
Steven Allen
d43aa7368b
Merge pull request #43 from libp2p/dep/import-smux
dep: import go-smux-* into the libp2p org
6 years ago
Steven Allen
b7f9522391
dep: import go-smux-* into the libp2p org
6 years ago
Steven Allen
e1669e2ee4
Merge pull request #41 from libp2p/fix/modernize
modernize request handling
6 years ago
Steven Allen
16e9eb2bb0
modernize request handling
I believe this was written before request hijacking was a thing. We no longer
need to hold the `ServeHTTP` function open.
6 years ago
Steven Allen
c1eeb0c70a
Merge pull request #31 from libp2p/feat/refactor
fix for transport refactor
7 years ago
Steven Allen
42780280b4
fixup for transport refactor
Also, use the now standardized transport tests (and fix bugs around closing the
listener).
7 years ago
Steven Allen
3093dfd6b7
Merge pull request #27 from libp2p/fix/close-failed-dial
close connections we fail to dial
7 years ago
Steven Allen
250a23c6db
close connections we fail to dial
The previous commit did this for connections we accept but I forgot to do this
for dialed connections.
7 years ago
Steven Allen
1424a22aee
Merge pull request #25 from libp2p/fix/close-failed
close connections we fail to wrap
7 years ago
Steven Allen
2d2035f757
close connections we fail to wrap
Maybe related to #21 . Probably not.
7 years ago
Steven Allen
16f68457d8
Merge pull request #20 from libp2p/fix/ipfs/go-ipfs/4202
fix requests from other origins
7 years ago
Steven Allen
f455930653
fix requests from other origins
We don't care about origins and *want* any code running on any origin to be able
to connect to any peer.
fixes ipfs/go-ipfs#4202
7 years ago
Steven Allen
a34b3e79b2
Merge pull request #19 from libp2p/fix/thread-safe-close
Make close thread safe
7 years ago
Steven Allen
da59505d57
don't explicitly nil err
(make @whyrusleeping happy)
7 years ago
Steven Allen
a88b185db2
Add write-zero test.
Just to be thorough.
7 years ago
Steven Allen
b863f44dab
test concurrent connection closing
7 years ago
Steven Allen
a293989e7c
Make close thread safe
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.
7 years ago
Jeromy Johnson
e57234edab
Merge pull request #18 from libp2p/fix/reading-addrs
fix reading from conn and addresses
7 years ago
Jeromy
cb1cddaeb6
fix review and tests
7 years ago
Jeromy
efba55492e
fix reading from conn and addresses
7 years ago
Jeromy Johnson
35370ce697
Merge pull request #17 from libp2p/feat/gorilla
feat: upgrade to use gorilla/websocket
7 years ago
dignifiedquire
9b327a62a9
add dialer.Matches test
7 years ago
dignifiedquire
328039237d
more tests
7 years ago
dignifiedquire
84a5d64f5a
refactor: simplify and split into multiple files
7 years ago
dignifiedquire
fd70584011
gx unwrite
7 years ago
dignifiedquire
be25e2eccb
another import fix
7 years ago
dignifiedquire
661ec220fd
use more pointers
7 years ago
dignifiedquire
f5d0996f7a
more cr fixes
7 years ago
dignifiedquire
32c4c20ddd
first round of cr fixes
7 years ago
dignifiedquire
0cb827d19b
gxified gorilla/websocket
7 years ago
dignifiedquire
398fcd59b4
feat: upgrade to use gorilla/websocket
Closes #12
7 years ago
Jeromy
fa8d0d27d1
gx publish 1.4.0
8 years ago
Jeromy
f5f0af8297
update libp2p-transport
8 years ago
Jeromy
b80c12878c
gx publish v1.2.0
8 years ago
Jeromy Johnson
594a7ef5a3
Merge pull request #3 from dignifiedquire/patch-1
fix: use binary frames instead of text frames
8 years ago
Friedel Ziegelmayer
598f265e6f
fix: use binary frames instead of text frames
This fixes websocket interop with js-ipfs
8 years ago
Jeromy
f87a8406e9
gx publish version 1.0.5, use builtin context
8 years ago
Jeromy
10b6a10746
some cleanup
8 years ago