Commit Graph

20 Commits

Author SHA1 Message Date
Arvid Norberg 2eeb6a1e0c fix issue in test_disk_io simulation event queue 2025-03-29 16:24:12 +01: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 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
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
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 0f8e466d5b improve merkle_tree tests by using an odd number of blocks 2021-10-26 12:48:00 +02:00
arvidn c825113a40 use simulated disk in test_swarm 2021-05-07 08:48:58 +02:00
arvidn 0655bd4334 organize utility functions for sims a bit better 2021-01-24 23:28:03 +01:00
Arvid Norberg 0c24a771db improve uTP simulations, to prevent regressions 2021-01-23 02:59:01 +01:00
arvidn e19736f925 fix simulation tests to make them not use deprecated functions 2017-07-26 18:00:03 -07:00
arvidn d138f02424 introduce lt namespace alias 2017-04-23 23:43:58 -04:00
Alden Torres 3faa771843 removed use of boost::bind and boost::scoped_array (#1053) 2016-09-01 09:43:53 -04:00
Arvid Norberg 717ed8bd3b Msvc warnings (#822)
fix msvc warnings in python bindings and simulations
2016-06-18 19:24:27 -04:00
arvidn d505f93d7a port sim tests to use the new setup_swarm API 2015-12-12 00:41:47 -05:00
arvidn 5da511f140 now that force-started torrents aren't affected by the auto-manager, they need to be explicitly kicked when entering checking state (it would be nice if all this could be done through set_state()) 2015-09-29 20:49:38 -04:00
arvidn a75699eff1 move test_metadata_extension to a simulation instead of a live test 2015-08-10 09:17:41 -04:00
arvidn 46803b75f8 support building libtorrent in simulation mode (using libsimulator, which is a git submodule) 2015-08-07 21:31:59 -04:00