Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#12 timeout link dead patch

open
nobody
None
5
2005-03-24
2005-03-24
Anthony Rumble
No

in linkfd.c the way vtun detects a dead network link
is in the idle loop of the select in function lfd_linker.

This works ok normally, however, if there is data
coming in on the local side, the select timeout loop
may never be executed.. and thus, vtun may never detect
the network link as being dead and dropout.

Now this obviously woulnd't be a common occurance in
normal usage, but it was with the way we were using
vtun.. and I guess if you used bridging mode it would
happen also.

Here is a patch, that also makes it do echo requests if
theres been no data received within ka_interval seconds
and there is still input data on the local side.

This seems to resolve this issue for our situation.

Also.. it would be a good idea for ka_interval and
ka_failure to be able to be set in the configuration
file.. rather than just being hard coded.

Discussion

  • Anthony Rumble
    Anthony Rumble
    2005-03-24

     
    Attachments
  • Bishop
    Bishop
    2006-11-26

    Logged In: YES
    user_id=10830
    Originator: NO

    I'm not seeing where the values for ka_ are even being hard-coded. Aren't they just being used here, uninitialized?