Re: [PATCH] wwan: retry connect on some errors and save them for log messages



On Tue, 2016-01-26 at 12:47 -0600, Dan Williams wrote:
First, cb751012a2f4b8ef236eab2a7c65687c99205806 mistakenly converted
the
act_stage_context_step() in connect_ready() to
connect_context_clear()
instead of connect_context_step().  This would cause the IP Type
retry
logic to fail and no further types to be tried.  It also throws
away the ctx->first_error and causes all errors that MM returns on
the
connect attempt to be dropped on the floor.

Second, not all errors should cause an advance to the next IP Type,
since some errors aren't related to it.  Specifically,
MM_CORE_ERROR_RETRY
when using Simple.Connect() means that a timeout was reached
in the internal connect logic, not a modem or network error.  In
that case, try the connect again with the same IP Type before
advancing
to the next type.


for the record: applied as:

http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=1cf47277662eda3bf3e049dc26c78f1022100169


Thomas

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]