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,7 +577,11 @@ int socketListen(u16 port) {
if(fd < 0) {
return -1;
}
int rcvbuf = 32768;
if(setsockopt(fd, SOL_SOCKET, SO_RCVBUF, &rcvbuf, sizeof(rcvbuf)) < 0) {
}
struct sockaddr_in address;
memset(&address, 0, sizeof(address));
address.sin_family = AF_INET;