Bug 17526

Summary: PB of frequency heuristic in uipc_socket.c in FreeBSD 3.4
Product: Base System Reporter: elemiere <elemiere>
Component: i386Assignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description elemiere 2000-03-21 14:50:02 UTC
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
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 2000-03-22 09:51:44 UTC
State Changed
From-To: open->feedback

YOu should have a look at the code on the RELENG_4 branch, which 
is quite different. 
Comment 2 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2001-03-13 01:40:59 UTC
State Changed
From-To: feedback->closed

Feedback timeout.