works well

This commit is contained in:
snar
2011-06-24 11:56:17 +00:00
parent 5e4dc7900b
commit 10d26c6b26
+4
View File
@@ -66,6 +66,10 @@ sx_maxsockbuf(int s, int dir)
} else if(phase==1) {
phase=2; optval-=2048; continue;
} else break;
} else if(voptval>=SX_MAXSOCKBUF_MAX) {
/* ... and getsockopt not failed and voptval>=optval. Do not allow
* to increase sockbuf too much even in case OS permits it */
break;
};
};