SIGHUP causes some sessions to be closed

PPPoE related questions
Post Reply
mlemaitre
Posts: 27
Joined: 04 Dec 2014, 15:09

SIGHUP causes some sessions to be closed

Post by mlemaitre »

Hi,

Each day, I send a SIGHUP to accel-pppd in order to reload its configuration, after logrotate has moved the log files.
Today, I noticed that some of my pppoe sessions, but not all, are closed at this time, with the "NAS-Error" message.
Is there a better way to reload accel-ppp to avoid this, or something else I can do ?

Regards,

Mat
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: SIGHUP causes some sessions to be closed

Post by Dmitry »

SIGHUP only reopens log files and hasn't to cause any session close
there is no other way to do that
mlemaitre
Posts: 27
Joined: 04 Dec 2014, 15:09

Re: SIGHUP causes some sessions to be closed

Post by mlemaitre »

Hi Dmitry,

Thank you for your answer. I have made further investigation, and I've found this message in the log file:

warn: ppp16: radius: server(1) not responding

I think an other cronjob on my radius server, at the exact same time of the SIGHUP, makes it unavailable for a few seconds, causing the session to be closed.

Do you think increasing acct-timeout could solve my issue ? what is the default value ?

Mat
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: SIGHUP causes some sessions to be closed

Post by Dmitry »

yes, that may helps
btw, is accounting mandatory for you ?
you can completely get rid of this problem by setting acct-timeout=0
in this case accel-ppp will send accounting packets, but won't wait for reply and thus won't retransmit lost packets
mlemaitre
Posts: 27
Joined: 04 Dec 2014, 15:09

Re: SIGHUP causes some sessions to be closed

Post by mlemaitre »

that's exactly what I've done, and I have no more "NAS-Error".
Thanks for your help
Post Reply