export file_progress class when building unit tests. fix to web_server.py (used for unit tests)
This commit is contained in:
parent
b472299524
commit
c5614b691f
|
@ -36,6 +36,8 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
#include <vector>
|
||||
#include <boost/cstdint.hpp>
|
||||
|
||||
#include "libtorrent/export.hpp"
|
||||
|
||||
namespace libtorrent
|
||||
{
|
||||
class piece_picker;
|
||||
|
@ -45,7 +47,7 @@ class torrent_handle;
|
|||
|
||||
namespace aux
|
||||
{
|
||||
struct file_progress
|
||||
struct TORRENT_EXTRA_EXPORT file_progress
|
||||
{
|
||||
file_progress();
|
||||
|
||||
|
|
|
@ -145,7 +145,7 @@ class http_handler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
|||
if not keepalive:
|
||||
s.send_header("Connection", "close")
|
||||
try:
|
||||
s.request.shutdown(SHUT_RD);
|
||||
s.request.shutdown(socket.SHUT_RD);
|
||||
except Exception, e:
|
||||
print 'Failed to shutdown read-channel of socket: ', e
|
||||
|
||||
|
|
Loading…
Reference in New Issue