mirror of
https://github.com/bgp/bgpq4
synced 2025-02-28 08:53:11 +00:00
final fix for maxsockbuf issue
This commit is contained in:
@@ -69,7 +69,7 @@ sx_maxsockbuf(int s, int dir)
|
||||
} else if(phase==1) {
|
||||
phase=2; optval-=2048; continue;
|
||||
} else break;
|
||||
} else if(optval>=SX_MAXSOCKBUF_MAX) {
|
||||
} else if((optval<<1)>=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;
|
||||
|
||||
Reference in New Issue
Block a user