From 360af45e631edff436215cbdf144dca0bb4ddc3c Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 20 Jan 2013 20:42:12 +0000 Subject: [PATCH] merged python binding fix from RC_0_16 --- ChangeLog | 2 ++ bindings/python/src/session.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index 7fe8ddfa3..f4e4b9a52 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,8 @@ * fix uTP edge case where udp socket buffer fills up * fix nagle implementation in uTP + * added missing max_connections() function to python bindings + 0.16.7 release * fix string encoding in error messages diff --git a/bindings/python/src/session.cpp b/bindings/python/src/session.cpp index ed8fe81fc..4373c629d 100644 --- a/bindings/python/src/session.cpp +++ b/bindings/python/src/session.cpp @@ -619,6 +619,7 @@ void bind_session() .def("set_max_uploads", allow_threads(&session::set_max_uploads)) .def("set_max_connections", allow_threads(&session::set_max_connections)) + .def("max_connections", allow_threads(&session::max_connections)) .def("set_max_half_open_connections", allow_threads(&session::set_max_half_open_connections)) .def("num_connections", allow_threads(&session::num_connections)) .def("set_settings", &session::set_settings)