Open Bug 363114 Opened 18 years ago Updated 5 months ago

False comments in prio.h misleading MANY mozilla developers

Categories

(NSPR :: NSPR, defect)

defect

Tracking

(Not tracked)

People

(Reporter: nelson, Unassigned)

References

()

Details

The block comments in prio.h contain many statements that bear the words
"will block" or "blocks".  It appears to me that ALL THESE STATEMENTS ARE 
FALSE on non-blocking sockets.

These false statements appear in the comments for PR_Read, PR_Write, 
PR_Writev, PR_Recv, PR_Send, PR_RecvFrom, PR_SendTo, and PR_AcceptRead.  
(It's unclear to me whether PR_AcceptRead works on non-blocking sockets.)

These statements have led numerous mozilla developers to conclude that the
functions are blocking, even when the sockets are non-blocking.  Some very
wrong code has been written in mozilla due to the mistaken belief that 
these functions are always blocking, even on non-blocking sockets.  These 
statements need to be fixed ASAP.  

I generally don't think of documentation bugs as being high in priority or
severity, but considering the magnitude of the problems caused by this 
mis-documentation, I think this bug is worthy of P1!
thx, Nelson :-)
http://www.mozilla.org/projects/nspr/reference/html/priofnc.html

The documentation should probably get fixed, too.

We might want to collect proposals for improved wordings in this bug.

The bug assignee didn't login in Bugzilla in the last 7 months and this bug has severity 'major'.
:KaiE, could you have a look please?
For more information, please visit auto_nag documentation.

Assignee: wtc → nobody
Flags: needinfo?(kaie)
Severity: major → --
Flags: needinfo?(kaie)

The severity field is not set for this bug.
:KaiE, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(kaie)
Severity: -- → N/A
Flags: needinfo?(kaie)

The severity field is not set for this bug.
:KaiE, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(kaie)
Severity: N/A → S4
Flags: needinfo?(kaie)
You need to log in before you can comment on or make changes to this bug.