| Summary: | PB of frequency heuristic in uipc_socket.c in FreeBSD 3.4 | ||
|---|---|---|---|
| Product: | Base System | Reporter: | elemiere <elemiere> |
| Component: | i386 | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Unspecified | ||
| Hardware: | Any | ||
| OS: | Any | ||
State Changed From-To: open->feedback YOu should have a look at the code on the RELENG_4 branch, which is quite different. State Changed From-To: feedback->closed Feedback timeout. |
Here it is: When configuring my kernel with the option HZ = 1000 instead of HZ = 100 , the following lines in uipc_socket.c lead to a systematic error. ---------------------------------------------- case SO_RCVTIMEO: error = sooptcopyin(sopt, &tv, sizeof tv, sizeof tv); if (error) goto bad; if (tv.tv_sec > SHRT_MAX / hz - hz) { error = EDOM; goto bad; } ---------------------------------------------- Would you please chagne your heuristic, so as to change to 1000Hz? Thanks Fix: changed the heuristic, but don't know the overall impact... How-To-Repeat: Kernel configuration