[Interest] QNetworkAccessManager doesn't recover when network is reconnected on Ubuntu.

Nesuan Taiso nesuan23 at gmail.com
Wed Dec 2 22:45:34 CET 2015


On 3/12/2015 3:03 AM, Thiago Macieira wrote:
> On Wednesday 02 December 2015 19:27:40 Nesuan Taiso wrote:
>> On Ubuntu 15, if the network is disabled using the notification tray
>> icon, then network requests fail (as expected).
>> The first failure is 'NetworkSessionFailedError' and subsequent failures
>> are 'UnknownNetworkError'.
>> But even once the network is reenabled, the network requests continue to
>> fail indefinitely (still with 'UnknownNetworkError').
>> Demo code and log from sample run shown below.
>>
>> I also tested on Windows and the problem did not happen (i.e. requests
>> resume normally after network is reconnected).
>>
>> How do I make Ubuntu behave the same as Windows? Do I need to 'reset'
>> the Qt network stack or something when I have an error on this platform?
>>
>> I am a novice so it's probably just something simple I forgot. Any
>> suggestions much appreciated!
> Can you disable libqnmbearer.so and try again?
>
> Find the file and, as root, chmod it to 0.
Yes this works, thank you!




More information about the Interest mailing list