merged logging fix from RC_0_16
This commit is contained in:
parent
40805503d6
commit
1422f5a1ba
|
@ -6,6 +6,7 @@
|
||||||
* fix uTP edge case where udp socket buffer fills up
|
* fix uTP edge case where udp socket buffer fills up
|
||||||
* fix nagle implementation in uTP
|
* fix nagle implementation in uTP
|
||||||
|
|
||||||
|
* fixed verbose log error for NAT holepunching
|
||||||
* fix a bunch of typos in python bindings
|
* fix a bunch of typos in python bindings
|
||||||
* make get_settings available in the python binding regardless of deprecated functions
|
* make get_settings available in the python binding regardless of deprecated functions
|
||||||
* fix typo in python settings binding
|
* fix typo in python settings binding
|
||||||
|
|
|
@ -1504,7 +1504,7 @@ namespace libtorrent
|
||||||
error_code ec;
|
error_code ec;
|
||||||
char const* err_msg[] = {"no such peer", "not connected", "no support", "no self"};
|
char const* err_msg[] = {"no such peer", "not connected", "no support", "no self"};
|
||||||
peer_log("<== HOLEPUNCH [ msg:failed error: %d msg: %s ]", error
|
peer_log("<== HOLEPUNCH [ msg:failed error: %d msg: %s ]", error
|
||||||
, ((error >= 0 && error < 4)?err_msg[error]:"unknown message id"));
|
, ((error > 0 && error < 5)?err_msg[error-1]:"unknown message id"));
|
||||||
#endif
|
#endif
|
||||||
// #error deal with holepunch errors
|
// #error deal with holepunch errors
|
||||||
(void)error;
|
(void)error;
|
||||||
|
|
Loading…
Reference in New Issue