diff --git a/libretroshare/src/tcponudp/tcpstream.cc b/libretroshare/src/tcponudp/tcpstream.cc index aed7a5f1a..eb862aa13 100644 --- a/libretroshare/src/tcponudp/tcpstream.cc +++ b/libretroshare/src/tcponudp/tcpstream.cc @@ -311,9 +311,9 @@ int TcpStream::status(std::ostream &out) out << "TcpStream::status @ (" << time(NULL) << ")" << std::endl; out << "TcpStream::state = " << (int) state << std::endl; out << std::endl; - out << "writeBuffer: " << inSize << " + 1500 * " << inQueue.size(); + out << "writeBuffer: " << inSize << " + MAX_SEG * " << inQueue.size(); out << " bytes Queued for transmission" << std::endl; - out << "readBuffer: " << outSizeRead << " + 1500 * "; + out << "readBuffer: " << outSizeRead << " + MAX_SEG * "; out << outQueue.size() << " + " << outSizeNet; out << " incoming bytes waiting" << std::endl; out << std::endl; diff --git a/libretroshare/src/tcponudp/tcpstream.h b/libretroshare/src/tcponudp/tcpstream.h index 29c627554..8d832f199 100644 --- a/libretroshare/src/tcponudp/tcpstream.h +++ b/libretroshare/src/tcponudp/tcpstream.h @@ -38,7 +38,7 @@ #include "tcppacket.h" #include "udppeer.h" -#define MAX_SEG 1500 +#define MAX_SEG 1000 #define TCP_MAX_SEQ UINT_MAX #define TCP_MAX_WIN 65500 #define TCP_ALIVE_TIMEOUT 15 /* 15 sec ... < 20 sec UDP state limit on some firewalls */