[pkg-wicd-maint] Bug#932042: Bug#932042: wicd-daemon: does not automatically reconnect on network connection loss when this is enabled

Vincent Lefevre vincent at vinc17.net
Mon Jul 15 01:53:55 BST 2019


On 2019-07-15 01:26:48 +0200, Vincent Lefevre wrote:
> Control: retitle -1 wicd-daemon: does not automatically reconnect on network connection loss if this network is invisible during the unique attempt
> 
> according to my explanation (which matches the code and log messages).

Actually, there may be 3 or 4 attempts, but during a short period.
Also, I'm not sure, because I didn't get the output

            print 'Starting automatic reconnect process'

in the logs, but this may be another issue...

AutoConnect can be called in 2 places:

1.
                if not daemon.GetGUIOpen():
                    print 'Killing wireless connection to switch to wired...'
                    wireless.DisconnectWireless()
                    daemon.AutoConnect(False, reply_handler=lambda *a:None,
                                       error_handler=lambda *a:None)
                    return self.update_state(misc.NOT_CONNECTED)

which is not possible when the GUI is open (thus this is not
what I could observe in some tests), and anyway the output
of the print is not in the logs.

2.
        if daemon.ShouldAutoReconnect():
            print 'Starting automatic reconnect process'
            self.last_reconnect_time = time.time()
            self.reconnect_tries += 1

            # If we just lost a wireless connection, try to connect to that
            # network again.  Otherwise just call Autoconnect.
            cur_net_id = wireless.GetCurrentNetworkID(self.iwconfig)
            if from_wireless and cur_net_id > -1:
                # make sure disconnect scripts are run
                # before we reconnect
                print 'Disconnecting from network'
                wireless.DisconnectWireless()
                print 'Trying to reconnect to last used wireless ' + \
                      'network'
                wireless.ConnectWireless(cur_net_id)
            else:
                daemon.AutoConnect(True, reply_handler=reply_handle,
                                   error_handler=err_handle)

Same issue with the output of the print.

But the log system in wicd seems broken. I've just reported another
bug:

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=932094

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



More information about the pkg-wicd-maint mailing list