From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1166 invoked by alias); 1 Nov 2012 18:27:43 -0000 Received: (qmail 1102 invoked by uid 22791); 1 Nov 2012 18:27:41 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_LOW 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; Thu, 01 Nov 2012 18:27:36 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id 0EFB52F78013 for ; Thu, 1 Nov 2012 18:27:35 +0000 (GMT) Received: from mail.ecoscentric.com ([127.0.0.1]) by localhost (hagrid.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sNd2qRAstkGs; Thu, 1 Nov 2012 18:27:31 +0000 (GMT) From: bugzilla-daemon@bugs.ecos.sourceware.org To: ecos-bugs@ecos.sourceware.org Subject: [Bug 1001696] New: cyg_ppp_up and cyg_wait_up sometimes never return X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: TCP/IP X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: kenkyee@excite.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: low 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: Thu, 01 Nov 2012 18:27: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/msg01322.txt.bz2 Please do not reply to this email. Use the web interface provided at: http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001696 Summary: cyg_ppp_up and cyg_wait_up sometimes never return Product: eCos Version: 3.0 Platform: All OS/Version: Other Status: UNCONFIRMED Severity: critical Priority: low Component: TCP/IP AssignedTo: unassigned@bugs.ecos.sourceware.org ReportedBy: kenkyee@excite.com CC: ecos-bugs@ecos.sourceware.org Class: Advice Request Our application requires that we make multiple PPP connections to minimize connection costs, so we have a pretty simple core bit of code that brings the PPP line up and down. Sometimes, eCos will hang during the cyg_ppp_up or cyg_ppp_wait_up calls. The only thing that shows up in the diag console is: SYSLOG 08: Using interface ppp0 SYSLOG 04: Connect: ppp0 <--> /dev/ser0 SYSLOG 08: Connect time expired SYSLOG 04: Connection terminated, connected for 1 minutes The core loop is roughly like this: cyg_ppp_handle_t pppHandle = cyg_ppp_up(PPP_PORT, &options) if (pppHandle != 0) { int pppStatus = cyg_ppp_wait_up(pppHandle); if (pppStatus == 0) { // wait for connection to come down if (cyg_ppp_wait_up(pppHandle) == 0) { int pppTimeout = PPPMAXUPTIMESECS; // PPP timeout in seconds while ((pppTimeout-- > 0) && (cyg_ppp_wait_up(pppHandle) == 0)) { Thread::sleep(sec(1)); } cyg_ppp_down(pppHandle); } } -- Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.