Marten Seemann
979147aed6
always close the connection in the cmd client
4 years ago
Steven Allen
0b57bca69f
Implement CloseRead/CloseWrite
This:
* Changes `Close` to behave like the unix `close` (sends an EOF, ignores future
inbound data).
* Adds a `CloseWrite` to replace the current `Close`.
* Adds a `CloseRead` to close the read side, while leaving the write side open.
See https://github.com/libp2p/go-libp2p-core/pull/166 .
4 years ago
Marten Seemann
b5e3105057
enable metrics
4 years ago
Marten Seemann
ec4007ae1f
update quic-go to v0.18.0 ( #171 )
4 years ago
Marten Seemann
f56ac0c0b0
update quic-go to v0.16.1
4 years ago
Raúl Kripalani
094d042339
Revert "fix a potential nil-pointer panic." ( #159 )
5 years ago
Raúl Kripalani
029459e4c9
fix a potential nil-pointer panic. ( #158 )
5 years ago
Marten Seemann
9f966ee16c
close the connection when it is refused by InterceptSecured
5 years ago
Aarsh Shah
4df1224724
gate QUIC connections via new ConnectionGater ( #152 )
5 years ago
Steven Allen
ee27334a62
fix: add read/write locks
We keep running into races so I figured we might as well just make this all
thread-safe. It should have no effect on performance.
The actual _bug_ was setting the write deadline while writing. But we might as
well just have read and write locks.
fixes https://github.com/libp2p/go-libp2p-swarm/issues/205
5 years ago
Marten Seemann
82c90ce038
apply @Stebalien's suggestions from code review
Co-Authored-By: Steven Allen <steven@stebalien.com>
5 years ago
Marten Seemann
9b04f0ff28
add command line client and server
5 years ago
Marten Seemann
31d6fba836
write qlogs to a temporary file first, then rename them when done
5 years ago
Will
3ec3559c03
switch local route binding to use netroute ( #134 )
switch local route binding to use netroute
5 years ago
Marten Seemann
4710507714
simplify the mkdir for the QLOGDIR
5 years ago
Marten Seemann
6e90057f87
use RFC3339Nano date format for qlog file names
5 years ago
Marten Seemann
bdbf17697e
export qlogs when the QLOGDIR env variable is set
5 years ago
Marten Seemann
d7e9747019
test that CanDial fails on /dns addresses
5 years ago
Steven Allen
e8ccc0b534
fix: avoid dialing/listening on dns addresses
See https://github.com/libp2p/go-libp2p/issues/841
5 years ago
Steven Allen
503a78e280
fix: don't allow dialing DNS addresses
See https://github.com/libp2p/go-libp2p/issues/841
5 years ago
Steven Allen
d0bf192109
fix: restrict dials to IP + TCP
That is, forbid DNS. See https://github.com/libp2p/go-libp2p/issues/841
5 years ago
Marten Seemann
96a91cce5f
move the info used for stateless key expansion to a constant
5 years ago
Marten Seemann
2559e4ba47
use minio/sha256-simd instead of standard library SHA256
5 years ago
Marten Seemann
805048ad53
use hkdf.New instead of hkdf.Expand for stateless reset key derivation
5 years ago
Marten Seemann
5f2357c2c1
use a stateless reset key derived from the private key
5 years ago
Marten Seemann
bbd82c0789
use the resolved address for RemoteMultiaddr()
5 years ago
Marten Seemann
29c56d8b00
add support for multiaddr filtering
5 years ago
Marten Seemann
eea1dd74b5
accept a PSK in the transport constructor (and reject it)
5 years ago
Hlib Kanunnikov
b8f591a4be
Respect mux.ErrReset ( #113 )
5 years ago
Marten Seemann
f40e281c77
update quic-go to v0.15.0
5 years ago
Marten Seemann
9cdba6a4cb
fix key comparisons in tests
5 years ago
Marten Seemann
81c4f0ad24
increase the stream and connection receive windows
5 years ago
Steven Allen
df4b7d636e
Revert "add mutex for write/close"
Actually fixed in https://github.com/multiformats/go-multistream/pull/50
This reverts commit 3d337a9a10
.
5 years ago
Raúl Kripalani
6463b1cf61
add licenses. ( #69 )
5 years ago
Steven Allen
4102c54de0
feat: faster copy in wasm
Use the new CopyBytesTo* functions to avoid copying byte by byte.
5 years ago
vyzo
3d337a9a10
add mutex for write/close
5 years ago
Steven Allen
9a31a773db
chore(dep): update deps
5 years ago
Marten Seemann
9fd36745d0
make reuse work on Windows
5 years ago
Jorropo
c18bd50d82
Allow custom SubtestStress. ( #7 )
SubtestStress is exposed but it was not possible to build a working opt parameters.
5 years ago
Steven Allen
88b65ce765
test: auto-install wasm test dependency
5 years ago
Steven Allen
908e0da96a
Handle connection errors before handling data.
5 years ago
Steven Allen
9da7d27a46
Set firstErr before signaling the connection close
5 years ago
Alex Browne
391b41eef5
Remove unused constant
5 years ago
Alex Browne
badfe1f130
Switch order of Call("close") and signalClose()
5 years ago
Alex Browne
9ec49775da
Recover from uncaught JavaScript exceptions in Conn.Write
5 years ago
Alex Browne
a4d3db5f85
Use a sync.Once in Conn.Close
5 years ago
Alex Browne
b4e7083efe
Set handlers to nil after releasing them
5 years ago
Alex Browne
169c516ab7
Simplify iteration over Uint8Array
5 years ago
Alex Browne
fe9ccdf21a
Simplify Conn.Read logic
5 years ago
Alex Browne
e08426cc8d
Call conn.Close if waitForOpen returns an error
5 years ago