mirror of
https://gitlab.com/Theopse/fbi-i18n-zh.git
synced 2025-04-06 03:58:02 +08:00
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:
parent
2e9b903904
commit
e4840c3385
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user