This is the mail archive of the mailing list for the eCos project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1001629] New: bsd stack uses wrong timeout values if hz != 100

Please do not reply to this email. Use the web interface provided at:

           Summary: bsd stack uses wrong timeout values if hz != 100
           Product: eCos
           Version: CVS
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: normal
         Component: TCP/IP
             Class: Advice Request

Created an attachment (id=1842)
 --> (
proposed patch to solve this defect

if the eCos kernel is configured to 1000 IRQ/s all timeouts in the bsd_tcpip
stack expire in 1/10th of the expected time.

For instance all timeouts given with setsockopt(SOL_SOCKET, SO_RCVTIMEO),
which has a potential to break existing TCP/IP applications.

The reason is the wrong assumption that hz is always 100 in the file

Attached is a proposed patch to fix this issue
and a similar problem in show_ticks_in_us(),
where it is taken for granted, that the NOMINATOR in
which is also not true in general.

Configure bugmail:
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]