Commit Graph

610 Commits

Author SHA1 Message Date
Arvid Norberg 883569e195 don't link against libboost_system explicitly, as it's deprecated. It's a header-only library now 2025-09-08 16:54:23 +02:00
Arvid Norberg 23388c17ff add option to send host header in HTTP proxy CONNECT command (#7710)
* add option to send host header in HTTP proxy CONNECT command

* land bearx3f's fix

* fixup
2025-07-18 08:04:57 +02:00
Arvid Norberg 26ddf30e75 don't set timers for current time, in simulations 2025-03-29 16:24:12 +01:00
Arvid Norberg 2eeb6a1e0c fix issue in test_disk_io simulation event queue 2025-03-29 16:24:12 +01:00
Maxime THIEBAUT f9dde8240f Add announce_port support 2024-11-09 10:20:19 +01:00
Maxime THIEBAUT 6a2c1eef6f Bump libsimulator submodule 2024-10-27 16:10:24 +01:00
xavier2k6 790b6629f6 Fix some typos 2024-09-29 14:13:46 +02:00
arvidn 5f7cf4b926 improve debug facilities of swarm simulations, by saving each each individual peers log 2024-07-27 10:57:46 +02:00
arvidn 98f1b2541a bump libsimulator submodule 2024-05-11 17:51:56 +02:00
luzpaz 63373cf012 Fixes various typos
Found via `codespell -q 3 -S "*.pem,*.torrent,./docs/hunspell,./src/puff.cpp" -L bu,fo,folx,ihs,ot,readd,requestor,te`
2023-08-24 07:52:41 +02:00
arvidn 06f98369cb fix issue in retrying trackers in tiers > 0 2023-02-27 20:22:38 +01:00
arvidn 0c5db6534c handle outgoing EOF properly. report eof to the write handler. record that we're closing. force send nagle packet and finally send FIN once all data has been sent. don't send FIN until the nagle packet has been force sent 2023-01-18 02:18:37 +01:00
arvidn 4c5116608e report EOF to upper layer when receiving a FIN packet, in uTP 2023-01-18 02:18:37 +01:00
arvidn 9aa816b308 ensure loading resume data tolerates bitfields that are too large 2022-12-29 21:35:04 +01:00
arvidn 24fbc1c9a7 extend test_transfer to stop and resume from resume-data 2022-12-29 21:35:04 +01:00
arvidn 9b29a9e1e0 prepare simulator alert handler to be composable 2022-12-29 21:35:04 +01:00
arvidn 9e198d79fd factor out run_all_combinations() from test_transfer matrix simulations 2022-12-29 21:35:04 +01:00
arvidn d3966ab486 post torrent_removed_alert after actually removing it from the disk subsystem 2022-12-29 21:35:04 +01:00
arvidn a8ab0c8ddf split up test_transfer_matrix into multiple binaries 2022-12-28 17:27:59 +01:00
arvidn cf678a9d62 extend transfer test matrix to include odd piece sizes and web seeds 2022-12-28 17:27:59 +01:00
ntfs.hard a58400b3fb Clarify printf argument flags 2022-10-22 22:15:28 +02:00
thrnz 4d578adc96 Fix uTP streams timing out instead of closing cleanly
In order to mark a ST_FIN packet as ack'd, maybe_inc_acked_seq_nr() needs to allow acked_seq_nr to reach seq_nr once in the fin-sent state. For this to work, the ST_FIN packet must also be stored in m_outbuf once sent.

Also, make sure that no further playload is picked up from the write buffer/nagled packet and sent out with the fin packet or any further acks as the sequence number should no longer be able to increase.
2022-10-22 01:42:06 +02:00
arvidn 227b34fc23 add uTP test exercising a stalled socket 2022-10-16 01:28:55 +02:00
arvidn 8786d17e59 fix trackers being stuck after session pause/resume 2022-09-24 16:17:12 +02:00
arvidn 31cedce075 fix bug in hash_picker with empty files 2022-09-23 19:25:01 +02:00
arvidn e950d14775 fix uses of deprecated functions in simulations 2022-09-23 17:04:16 +02:00
thrnz 9f8ccc44ea Don't drop uTP's cwnd below 1*MSS due to latency 2022-09-20 14:08:47 +02:00
arvidn 12392fd859 support incoming SOCKS5 packets with hostnames as source address, for UDP trackers 2022-09-10 12:03:54 +02:00
thrnz 30604673fe Modify the Nagle algorithm to allow one undersized packet in flight at a time 2022-09-09 18:17:12 +02:00
thrnz a692732082 For efficiency, pick up and send an undersized utp packet if there's room in the congestion window when 'forcing' a packet 2022-09-09 09:17:43 +02:00
arvidn 8219b61d43 make the SOCKS5 client tolerate a domain name in the response to UDP ASSOCIATE (and ignore it). Patch by Andrei Borzenkov 2022-08-23 17:46:14 +02:00
arvidn 62edc028ee fix warning in test_v2.cpp 2022-07-06 09:13:10 +02:00
arvidn 822975349a fix issue where stop-when-ready would not close files 2022-07-06 09:13:10 +02:00
arvidn 15c84eaa54 add torrent_conflict_alert 2022-06-18 22:17:51 +02:00
arvidn 6290539651 fix issue with merging two magnet link torrents into one hybrid 2022-06-18 22:17:51 +02:00
arvidn b1595a0a98 update alert_order test 2022-06-07 08:57:17 +02:00
arvidn be8313e35e merge RC_1_2 into RC_2_0 2022-05-22 14:17:25 +02:00
arvidn 13b252e1a4 Fix bug when checking files and the first piece is invalid 2022-05-11 12:26:51 +02:00
arvidn d78dc1c201 remove unused priority field in http_connection 2022-05-11 12:26:21 +02:00
arvidn 9c04d24504 merged RC_1_2 into RC_2_0 2022-03-06 22:11:02 +01:00
arvidn d102b9c70c Send a User-Agent field in HTTP tracker requests in anonymous mode. It appears some trackers require this field and will fail with 'Forbidden' otherwise. 2022-03-06 16:41:38 +01:00
arvidn 0c403745fd test merge RC_1_2 into RC_2_0 2022-02-27 18:44:22 +01:00
arvidn d92ba1561f use a namespace for unit test framework globals rather than reserved identifiers 2022-02-27 17:54:16 +01:00
arvidn d8c4747545 bump boost version on windows CI in order to have boost-build work with the newer msvc 2022-02-27 14:10:29 +01:00
arvidn 902f5b433b fix use of reserved names 2022-02-14 01:32:27 +01:00
arvidn 096544cfd1 factor out test_transfer_matrix into its own test executable 2021-12-08 08:15:36 +01:00
arvidn d2813015ac build against OpenSSL by default 2021-11-02 09:11:36 +01:00
arvidn 6717bd91a1 fix issue where incoming uTP connections were not accepted over SOCKS5 2021-10-30 11:47:37 +02:00
arvidn 16814ec176 use a more reliable work-around for msvc standard library types whose move and move-assign operators can throw 2021-10-26 12:48:00 +02:00
arvidn 0f8e466d5b improve merkle_tree tests by using an odd number of blocks 2021-10-26 12:48:00 +02:00