From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10102 invoked by alias); 25 Jul 2012 07:54:18 -0000 Received: (qmail 10089 invoked by uid 22791); 25 Jul 2012 07:54:17 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,T_FRT_STOCK2,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 25 Jul 2012 07:54:03 +0000 Received: by mail.ecoscentric.com (Postfix, from userid 48) id A78A52F78006; Wed, 25 Jul 2012 08:54:02 +0100 (BST) From: bugzilla-daemon@bugs.ecos.sourceware.org To: unassigned@bugs.ecos.sourceware.org Subject: [Bug 1001629] New: bsd stack uses wrong timeout values if hz != 100 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: TCP/IP X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bernd.edlinger@hotmail.de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: normal X-Bugzilla-Assigned-To: unassigned@bugs.ecos.sourceware.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://bugs.ecos.sourceware.org/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Wed, 25 Jul 2012 07:54:00 -0000 Mailing-List: contact ecos-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-bugs-owner@sourceware.org X-SW-Source: 2012/txt/msg01071.txt.bz2 Please do not reply to this email. Use the web interface provided at: http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001629 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 AssignedTo: unassigned@bugs.ecos.sourceware.org ReportedBy: bernd.edlinger@hotmail.de CC: ecos-bugs@ecos.sourceware.org Class: Advice Request Created an attachment (id=1842) --> (http://bugs.ecos.sourceware.org/attachment.cgi?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 "ecos/packages/net/bsd_tcpip/current/src/ecos/support.c". 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 CYGNUM_KERNEL_COUNTERS_RTC_RESOLUTION is always 1000000000 (1E9) which is also not true in general. -- Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.