#8 pptp hangs and new connection can't established

closed
nobody
None
5
2012-09-16
2007-03-03
Stas Degteff
No

My internet provider uses PPTP-tunnel for connecting clients to internet. PPTP server is Windows 2003.
I uses GNU/Linux distributive "Fedora Core 4". I make connection into PPTP server using pppd + pptpclient, calls pptp via option pty of pppd.

At some moment after establishing connection (month ago, one day ago and another "random" periods) one of pptpclient processes hangs. pppd try to re-establish connection, and child-pptp hangs on connect() call. pppd try to re-establish connection more, and more child-pptp hangs on connect() call.

Is't required to set timeout for connect() call.
Problem code (pptp hangs point is line 420 of pptp.c):
==pptp.c=============================================
417 / Make address /
418 callmgr_name_unixsock(&where, inetaddr, localbind);
419 for (i = 0; i < NUM_TRIES; i++) {
420 if (connect(fd, (struct sockaddr ) &where, sizeof(where)) < 0) {
421 /
couldn't connect. We'll have to launch this guy. */
=====================================================

Discussion

  • James Cameron
    James Cameron
    2007-03-06

    Logged In: YES
    user_id=19261
    Originator: NO

    No patch found, closing tracker. Please use the mailing list for support discussion. connect(2) does timeout eventually.

     
  • Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).