Skip to contentSkip to conversation

timeout

DISCUSSION [email protected] 3 participants 3 messages Aug 4, 2008 – Aug 5, 2008 PPP protocol drivers and compressors

lore
Share & tools
lore
#0 lore raw

I am using pptp which calls pppd. I use ip-up.local to add routes.

Problem is, when connecting, after only 10 or 15 seconds the link gets dropped by the peer due to inactivity (I think it is the peer and not me).

Anyway I can make a stupid script to ping the other side every 5 seconds, which keeps the link up. But there should be a better way. I thought lcp-echo-request set to 5 would do it, but that sends only if it hasn't heard from the peer in 5 seconds, and by then it is too late.

Any suggestions?

#1 lore raw
Quoted 4 lines · On Mon, 4 Aug 2008, [email protected] wrote:

I am using pptp which calls pppd. I use ip-up.local to add routes.

Problem is, when connecting, after only 10 or 15 seconds the link gets dropped by the peer due to inactivity (I think it is the peer and not me).

Who is the peer? Are you sure you do not have a timeout where you thought the time was in minutes but really is in seconds?

Quoted 11 lines

Anyway I can make a stupid script to ping the other side every 5 seconds, which keeps the link up. But there should be a better way. I thought lcp-echo-request set to 5 would do it, but that sends only if it hasn't heard from the peer in 5 seconds, and by then it is too late.

Any suggestions?

--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 4 lines
William G. Unruh   |  Canadian Institute for|     Tel: +1(604)822-3273
Physics&Astronomy  |     Advanced Research  |     Fax: +1(604)822-5324
UBC, Vancouver,BC  |   Program in Cosmology |     [email protected]
Canada V6T 1Z1     |      and Gravity       |  www.theory.physics.ubc.ca/
#2 lore raw
In reply to [email protected]
Quoted 5 lines · On Mon, Aug 04, 2008 at 08:37:55PM +0000, [email protected] wrote:

I am using pptp which calls pppd. I use ip-up.local to add routes.

Problem is, when connecting, after only 10 or 15 seconds the link gets dropped by the peer due to inactivity (I think it is the peer and not me).

If you have added routes that change the route used by pptp for the GRE packet stream, then the peer will drop the connection because the LCP echo requests are not replied to.

Does the same problem occur without your route changes?

Which version of pppd? Which version of pptp?

Quoted 2 lines

Anyway I can make a stupid script to ping the other side every 5 seconds, which keeps the link up.

I'm surprised.

It would be more useful to see a "debug dump" log posted on a web page for us to look at.

Signature · 3 lines
James Cameron                         http://quozl.netrek.org/
HP Open Source, Volunteer             http://opensource.hp.com/
PPTP Client Project, Release Engineer http://pptpclient.sourceforge.net/