From 93aa334219b6fcf01b215af60298217317b22c1e Mon Sep 17 00:00:00 2001 From: csoler Date: Fri, 5 Feb 2010 23:10:32 +0000 Subject: [PATCH] setup chunk slicing in FT to 32K instead of 8K. Seems to work perfectly, and faster, since TCP slicing is less likely to waste packets when the size is not a multiple of the TCP slice (1500 bytes?) git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2210 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/ft/ftserver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretroshare/src/ft/ftserver.cc b/libretroshare/src/ft/ftserver.cc index 3be0f5af5..52319716a 100644 --- a/libretroshare/src/ft/ftserver.cc +++ b/libretroshare/src/ft/ftserver.cc @@ -709,7 +709,7 @@ bool ftServer::sendChunkMap(const std::string& peerId,const std::string& hash,co //const uint32_t MAX_FT_CHUNK = 32 * 1024; /* 32K */ //const uint32_t MAX_FT_CHUNK = 16 * 1024; /* 16K */ -const uint32_t MAX_FT_CHUNK = 8 * 1024; /* 16K */ +const uint32_t MAX_FT_CHUNK = 32 * 1024; /* 16K */ /* Server Send */ bool ftServer::sendData(const std::string& peerId, const std::string& hash, uint64_t size, uint64_t baseoffset, uint32_t chunksize, void *data)