Alex Browne
b8d9682b7b
Expand comment about time.Sleep hack
5 years ago
Alex Browne
38b0b7fbbe
Add proper error handling
5 years ago
Alex Browne
eda7468e8b
Add TODO for returning os.ErrNoDeadline
5 years ago
Alex Browne
e327fad162
Use a buffer of 1 for dataSignal channel
5 years ago
Alex Browne
2eb6cb2d8d
Use ArrayBuffer type for binary data
This allows us to avoid the rather obtuse FileReader API and makes it
easier to read incoming data syncronously.
5 years ago
Alex Browne
42732897d5
Preserve message order by not using a goroutine in messageHandler
5 years ago
Alex Browne
f85474b0af
Revert back to using readAsArrayBuffer
5 years ago
Alex Browne
49b017b696
Add better error handling to readBlob
5 years ago
Alex Browne
9f099798d1
Optimize readBlob by using the readAsBinaryString method
5 years ago
Alex Browne
7fcd4492ca
Cache local and remote address
5 years ago
Alex Browne
a52e415ef7
Revert to returning nil instead of os.ErrNoDeadline
5 years ago
Alex Browne
31e5ba48ed
Change go and js suffixes to native and browser
5 years ago
Alex Browne
ee5c8299d2
return os.ErrNoDeadline where appropriate
5 years ago
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
7f87ef83e4
fix: close gracefully
If we send no message, the client gets a 1005. This will send a 1000.
5 years ago
Steven Allen
6de8743b2b
dep: update and switch to go-multiaddr-fmt
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
Guilhem Fanton
7820ddc8dd
fix(netlink): limit netlink families to NETLINK_ROUTE on linux
instead of android only.
5 years ago
Guilhem Fanton
70edc02c26
fix(android): use specific netlink families for android
Android doesn't allow netlink_xfrm & netlink_nflog in his base policy in enforce
mode. (see [here](3aa1c1725e/public/app.te (396)))
this cause a _permission denied_ when NewTransport method is called on android,
however it's look like that only *netlink route* is needed, so we just have to limit netlink
families support on android build to NETLINK_ROUTE only when netlink.NewHandle is called.
5 years ago
Marten Seemann
2fe3c88eb8
close reuse-connections before deleting them
5 years ago
Marten Seemann
19dcc59037
delete reuse-connection if they aren't used for more than 10 seconds
5 years ago
Marten Seemann
ff46be4599
fix saving of listening connections when listening on IP:0
5 years ago
Marten Seemann
46775f0070
use a single handle for each reuse
5 years ago
lnykww
d1193da2f8
reuse listening connections for dialing
6 years ago
Marten Seemann
5d493b46b3
add an error check that we actually received the peer's public key
5 years ago
Marten Seemann
cacd2a4016
use the handshake logic from go-libp2p-tls
5 years ago
Marten Seemann
744a6addae
update quic-go to v0.12.0 (supporting QUIC draft-22)
5 years ago
Yusef Napora
cea811c943
use new insecure transport constructor
5 years ago
Raúl Kripalani
3255249d4e
migrate to consolidated types. ( #45 )
6 years ago
Raúl Kripalani
5a33a88caf
migrate to consolidated types. ( #62 )
6 years ago
Raúl Kripalani
ed7828ceef
migrate to consolidated types ( #40 )
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
Raúl Kripalani
2857d54b80
SubtestPingPong: ensure connections are closed.
https://github.com/libp2p/go-libp2p-transport/pull/51
6 years ago
Raúl Kripalani
aacc91fe0c
initial commit.
Consolidate test utilities, harnesses and suites (#1 )
6 years ago
Steven Allen
b7f9522391
dep: import go-smux-* into the libp2p org
6 years ago
Steven Allen
b06b0e6b21
dep: import go-libp2p-mplex into the libp2p org
6 years ago
Marten Seemann
2af204e40d
when ListenUDP fails once, try again next time
6 years ago
Steven Allen
a517f4d213
chore: remove inline interface
(@vyzo CR)
6 years ago
Marten Seemann
9259704097
update quic-go to v0.11.0
6 years ago
Steven Allen
87f331a7fc
set linger to 0 for both inbound and outbound connections
This causes us to send RST packets instead of FIN packets when closing
connections and means connections immediately enter the "reset" state instead of
entering the TIME-WAIT state.
Importantly, this means we can immediately reuse the 5-tuple and reconnect.
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
can
b3274ae950
Fix missing transport in dialed connection
6 years ago
Can ZHANG
e8b9e0d5e3
Deprecate IPFS_REUSEPORT, use LIBP2P_TCP_REUSEPORT
6 years ago
Marten Seemann
9692260f18
run Go 1.11 gofmt, use Go 1.10.x and 1.11.x on Travis
6 years ago
Marten Seemann
88f8b4c38a
update quic-go to 0.10.0
6 years ago
Marten Seemann
005db422e6
update quic-go to v0.9.0, use the quic-go milestone version
6 years ago
Marten Seemann
c3a5e86908
allow 1000 bidirectional streams, disable unidirectional streams
6 years ago
Marten Seemann
8dcf45bc81
generate certificates that are valid for 180 days
6 years ago