Matt Joiner
fed765b2a0
Fix write error handling
...
Fixes https://github.com/anacrolix/torrent/issues/798 .
Prior to this fix, it looks like the writer would just keep writing chunks of the front buffer (incorrectly if there was an error), until presumably the writer would be killed by read hangup elsewhere.
2022-12-25 19:24:16 +11:00
Alex Sharov
caa9400c52
use rLock where can, part2 ( #767 )
2022-07-13 20:04:03 +10:00
Matt Joiner
12279621e4
Check that incoming peer request chunk lengths don't exceed the upload rate limiter burst size
...
Should fix #759 .
2022-06-25 23:16:58 +10:00
Matt Joiner
54665f160a
Rework peer connection writer to keep individual writes smaller
...
This fixes an issue with WebRTC when the write buffers get too big.
2022-06-14 16:01:47 +10:00
Matt Joiner
9b6e191b0a
Avoid reallocating keep alive timer on each pass
2021-08-22 20:05:53 +10:00
Matt Joiner
092dc74458
Rewrite peerConnMsgWriter.run
2021-08-19 13:37:00 +10:00
Matt Joiner
16c4b08885
Fix deadlock when checking whether to send keep alive
2021-08-19 13:37:00 +10:00
Matt Joiner
588a7b6149
Fix race in assigning keep alive timer
2021-08-19 13:37:00 +10:00
Matt Joiner
dcb2e5b53b
Use different keep alive timeout in tests
...
Exposes bug found in email discussions resulting from https://github.com/anacrolix/torrent/discussions/547 .
2021-08-19 13:37:00 +10:00
Matt Joiner
7d9e2b18d6
Extract chansync to github.com/anacrolix/chansync
2021-06-07 13:01:40 +10:00
Matt Joiner
906db030f3
Add peerConnMsgWriter file
...
Forgot this earlier, new to Sublime Merge.
2021-06-07 13:01:40 +10:00