Patch by Adrian Panasiuk: Initialize the renewal time before starting the message runner. This fixes a timing race that would trigger on some DHCP servers and result in constant renewal requests (Ticket #2531). Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28817 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
8fcbae95c7
commit
168cc3df42
@ -569,9 +569,9 @@ DHCPClient::_Negotiate(dhcp_state state)
|
||||
if (fRebindingTime == 0)
|
||||
fRebindingTime = fLeaseTime * 5/6;
|
||||
|
||||
bigtime_t now = system_time();
|
||||
_RestartLease(fRenewalTime);
|
||||
|
||||
bigtime_t now = system_time();
|
||||
fLeaseTime += now;
|
||||
fRenewalTime += now;
|
||||
fRebindingTime += now;
|
||||
|
Loading…
Reference in New Issue
Block a user