Re: [LineControl-development] LineSrv pppd Error handling
Brought to you by:
sfuchs
|
From: S. F. <lin...@sr...> - 2005-03-16 16:05:25
|
Hi Timothy,
sorry, your mail nearly drowned...
> I'm posting this here because there are few subscribers to the users
> lists. Sometimes when I connect with linesrv the ppp connection
> fails to initiate properly. Unfortunately linesrv isn't detecting
> the error. I am using pon and poff for the scripts so I'm wondering
> how it actually detects a failed dial attempt.
Whatever your pon/poff scripts are... linesrv uses only a timeout
to conclude that the dial attempt failed.
> As far as I can see /var/run/ppp-Provider.pid remains although the
> pppd process has finished. Both pppd and chat have exited.
> Looking through the src I can see that for a ppp connection it
> checks to see when ppp0 is up. Wouldn't it make more sense to also
> check to see if pppd is running?
> i.e. if (line_status(line) = CST_DIALING) {
> /* Check if line is up yet */
> /* Check if pppd is still active, if pppd has died
> then
> return \
> status to CST_DOWN and send client an error */
> }
>
> Any other suggestions on how this can be achieved? I can change the
> con_type to file and have a ip-up.d/connected script that creates a
> file but I'm not 100% sure of con_type file
> I'm going to try con_timeout with 120 seconds to see how that goes,
> otherwise I'll try con_type file.
- create your own solution with con_type file
- implement a new mechanism which uses the
proposed 'pppd running detection'
- configure redial attempts and chat/pppd timeouts
in a manner to work correctly with the linesrv
timeouts you configured.
Greetings
Stefan Fuchs
--
http://srf.ch/
|