export file_progress class when building unit tests. fix to web_server.py (used for unit tests)

This commit is contained in:
arvidn 2015-07-07 23:46:33 -04:00
parent b472299524
commit c5614b691f
2 changed files with 4 additions and 2 deletions

View File

@ -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();

View File

@ -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