diff --git a/src/Home/Net/Protocols/TCP/TCP.HH b/src/Home/Net/Protocols/TCP/TCP.HH index e24c7f36..f76ae553 100755 --- a/src/Home/Net/Protocols/TCP/TCP.HH +++ b/src/Home/Net/Protocols/TCP/TCP.HH @@ -11,6 +11,8 @@ U16 RECEIVE_WINDOW; // gets host window size. It is not static. U16 SEND_WINDOW; // gets receive window size from host, then adjust accordingly. +U32 RECEIVE_BUFFER; // is 32 too much? receive_buffer holds TCP data that has not yet been processed + #define TCP_MSS 536 // Max Segment Size default #define TCP_TIMEOUT 5000 diff --git a/src/Home/Net/Protocols/TCP/TCP.ZC b/src/Home/Net/Protocols/TCP/TCP.ZC index 77bc836b..22e4edcc 100755 --- a/src/Home/Net/Protocols/TCP/TCP.ZC +++ b/src/Home/Net/Protocols/TCP/TCP.ZC @@ -647,8 +647,8 @@ CTCPSocket TCPSocket(U16 domain=AF_UNSPEC) QueueInit(accept_queue); // init pending connection queue tcp_socket->accept_queue = accept_queue; - tcp_socket->receive_buffer_size = RECEIVE_WINDOW; - tcp_socket->receive_buffer = CAlloc(RECEIVE_WINDOW); + tcp_socket->receive_buffer_size = RECEIVE_BUFFER; + tcp_socket->receive_buffer = CAlloc(RECEIVE_BUFFER); tcp_socket->max_segment_size = TCP_MSS;