1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 01:57:52 +00:00
Commit graph

17 commits

Author SHA1 Message Date
Jordan Lee
5df3c77cf2 #4260 "µTP not working on embedded device" -- apply the changes from https://github.com/ghazel/libutp rather than http://github.com/bittorrent/libutp 2011-08-10 14:51:59 +00:00
Jordan Lee
cdb95995e8 (trunk, libutp) #4260 "uTP not working when compiler doesn't honor 'pragma pack'" -- apply alus' revised patch for testing. 2011-07-30 22:15:32 +00:00
Juliusz Chroboczek
8018973257 Resynchronise with upstream libutp.c, commit 4be31bb7. 2011-07-25 19:27:17 +00:00
Jordan Lee
2492ac63e5 (trunk libutp) #4260 "uTP not working on embedded device" -- use __attribute__ ((__packed__)) on gcc compilers as suggested by KyleK 2011-05-28 00:50:11 +00:00
Jordan Lee
38669a6c3b (trunk libT) #4153 "Protect against non-monotonic time in libutp" -- try again. 2011-03-30 23:54:39 +00:00
Jordan Lee
7aa90a3812 (trunk libT) #4153 "Protect against non-monotonic time in libutp" -- another attempt at getting it to compile on win32 2011-03-30 23:50:25 +00:00
Jordan Lee
4cf4000620 (trunk libT) #4153 "Protect against non-monotonic time in libutp" -- move UTP_GetMilliseconds() and UTP_GetMicroseconds() outside of the if-not-windows ifdef section. Based on feedback from rb07 in ticket comment 5 2011-03-30 23:26:00 +00:00
Juliusz Chroboczek
7b06392812 Don't explicitly protect against non-monotonic gettimeofday.
Since we're now protecting against non-monotonic time unconditionally,
there's no need for additional protection in the gettimeofday case.
2011-03-30 00:29:07 +00:00
Juliusz Chroboczek
c0ef0f50ad Protect against monotonic time being non-monotonic, take 2.
This is a better fix, suggested by ghazel.
2011-03-30 00:14:41 +00:00
Juliusz Chroboczek
74c0721a2c Protect against monotonic time being non-monotonic.
Within utp.cpp, there's a bunch of assertions that will cause us
to crash if monotonic time isn't.  While I have no idea about Windows,
under Unix we use real time instead of monotonic time if POSIX clocks
are not available, and real time can be stepped backwards.  Since the
protection is cheap, we perform it on all platforms.
2011-03-29 23:15:38 +00:00
Jordan Lee
b4d36aeb54 (trunk) #4138 "use stdbool.h instead of tr_bool" -- done. 2011-03-22 15:19:54 +00:00
Juliusz Chroboczek
63917c907b Revert "Protect against broken implementations of monotonic time."
There are other instances of GetMicroseconds in the code, so a proper
paranoiac would want to work around that at a lower level.
2011-03-12 22:45:14 +00:00
Juliusz Chroboczek
97229c1813 Protect against broken implementations of monotonic time.
Fixes #4090.
2011-03-09 15:31:54 +00:00
Jordan Lee
4f5a8dbec3 (trunk libutp) silence a couple of useless asserts.
From 577e03dc3e
2011-02-19 17:52:02 +00:00
Juliusz Chroboczek
fb82ff08a4 Resynchronise with libutp 2011-02-09 15:29:29. 2011-02-18 00:43:56 +00:00
Jordan Lee
9dca338032 make a note that we need to implement UTP_GetGlobalUTPBytesSent in libtransmission 2011-02-18 00:33:54 +00:00
Jordan Lee
01f5a8b093 import libutp into third-party/ and plug it in to autoconf, automake 2011-02-18 00:31:49 +00:00