Tatsuhiro Tsujikawa 19 rokov pred
rodič
commit
b72c6805e4
2 zmenil súbory, kde vykonal 3 pridanie a 1 odobranie
  1. 2 0
      src/HttpResponseCommand.cc
  2. 1 1
      src/Peer.h

+ 2 - 0
src/HttpResponseCommand.cc

@@ -26,6 +26,8 @@
 #include "HttpInitiateConnectionCommand.h"
 #include "message.h"
 #include "Util.h"
+#include <sys/types.h>
+#include <unistd.h>
 
 HttpResponseCommand::HttpResponseCommand(int cuid, Request* req, DownloadEngine* e, const Socket* s):
   AbstractCommand(cuid, req, e, s) {

+ 1 - 1
src/Peer.h

@@ -30,7 +30,7 @@
 using namespace std;
 
 #define PEER_ID_LENGTH 20
-#define DEFAULT_LATENCY 1000
+#define DEFAULT_LATENCY 1500
 
 class Peer {
 public: