On Thursday, Apr 10, 2003, at 03:47 US/Pacific, Stiphane Sudre wrote: I'm making some tests to see what the max_value can be for the rcv_cc for soreserve and it seems that 256 KB (I may be way too optimistic) is too big and 128 KB is OK. There seems to be a limit from what I can see in the source code of sbreserve but finding this limit is not that easy following the source. Another point is that there's a sysctl for the net.inet.raw.recvspace which is said to be 8192. Does someone know the MAX limit for the recv buff size of soreserve? You're right; the source is not easy to follow. There are two other 'recvspace' values, one for TCP, one for that other protocol: net.inet.tcp.recvspace: 32768 net.inet.udp.recvspace: 42080 These act as defaults, and you can change them via setsockopt(). I have this vestigial recollection that the max is limited, but I can't find anyplace in the source where this is done, and the sysctl doesn't complain if I set it to 1,000,000. Regards, Justin -- /~\ The ASCII Justin C. Walker, Curmudgeon-at-Large \ / Ribbon Campaign X Help cure HTML Email / \ _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
Justin Walker