Vasil Dimov
af0fca530e
netbase: use reliable send() during SOCKS5 handshake
...
`send(2)` can be interrupted or for another reason it may not fully
complete sending all the bytes. We should be ready to retry the send
with the remaining bytes. This is what `Sock::SendComplete()` does,
thus use it in `Socks5()`.
Since `Sock::SendComplete()` takes a `CThreadInterrupt` argument,
change also the recv part of `Socks5()` to use `CThreadInterrupt`
instead of a boolean.
Easier reviewed with `git show -b` (ignore white-space changes).
2023-10-31 18:19:37 +01:00
MarcoFalke
fa6dfaaf45
scripted-diff: Use new FUZZ_TARGET macro everywhere
...
-BEGIN VERIFY SCRIPT-
ren() { sed --regexp-extended -i "s|$1|$2|g" $(git grep -l --extended-regexp "$1"); }
# Replace FUZZ_TARGET_INIT
ren 'FUZZ_TARGET_INIT\((.+), (.+)\)' 'FUZZ_TARGET(\1, .init = \2)'
# Delete unused FUZZ_TARGET_INIT
sed -i -e '37,39d' src/test/fuzz/fuzz.h
-END VERIFY SCRIPT-
2023-07-13 20:37:14 +02:00
MarcoFalke
fa454dcb20
net: Use steady clock in InterruptibleRecv
2023-04-04 12:33:49 +02:00
Hennadii Stepanov
306ccd4927
scripted-diff: Bump copyright headers
...
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./
-END VERIFY SCRIPT-
Commits of previous years:
- 2021: f47dda2c58
- 2020: fa0074e2d8
- 2019: aaaaad6ac9
2022-12-24 23:49:50 +00:00
MarcoFalke
fa3b2cf277
fuzz: Move-only net utils
2022-11-23 17:26:01 +01:00
Jon Atack
52dd40a9fe
test: add missing netaddress include headers
2021-03-16 19:52:37 +01:00
Jon Atack
6423c8175f
p2p, refactor: pass and use uint16_t CService::port as uint16_t
2021-03-16 19:52:31 +01:00
MarcoFalke
fa59ad5130
fuzz: Add missing include (test/util/setup_common.h)
2021-03-04 08:39:27 +01:00
practicalswift
366e3e1f89
fuzz: Add FUZZED_SOCKET_FAKE_LATENCY mode to FuzzedSock to allow for fuzzing timeout logic
2021-03-02 21:44:51 +00:00
practicalswift
b22d4c1607
fuzz: Add fuzzing harness for Socks5(...)
2021-03-02 21:43:42 +00:00