Increase rcvbuf to 32k.

3ds's default rcvbuf is 4k, increase it, cia install speed is faster.
Rcvbuf of win and osx is 65535.
This commit is contained in:
wjchen 2016-01-02 22:13:29 +08:00 committed by Steven Smith
parent 2e9b903904
commit e4840c3385

View File

@ -577,6 +577,10 @@ int socketListen(u16 port) {
if(fd < 0) { if(fd < 0) {
return -1; return -1;
} }
int rcvbuf = 32768;
if(setsockopt(fd, SOL_SOCKET, SO_RCVBUF, &rcvbuf, sizeof(rcvbuf)) < 0) {
}
struct sockaddr_in address; struct sockaddr_in address;
memset(&address, 0, sizeof(address)); memset(&address, 0, sizeof(address));