{"action":"created","issue":{"url":"https://api.github.com/repos/FreeRADIUS/freeradius-server/issues/941","labels_url":"https://api.github.com/repos/FreeRADIUS/freeradius-server/issues/941/labels{/name}","comments_url":"https://api.github.com/repos/FreeRADIUS/freeradius-server/issues/941/comments","events_url":"https://api.github.com/repos/FreeRADIUS/freeradius-server/issues/941/events","html_url":"https://github.com/FreeRADIUS/freeradius-server/issues/941","id":64803311,"number":941,"title":"DHCP - FreeRADIUS complains about conflicting packets","user":{"login":"nchaigne","id":6780490,"avatar_url":"https://avatars.githubusercontent.com/u/6780490?v=3","gravatar_id":"","url":"https://api.github.com/users/nchaigne","html_url":"https://github.com/nchaigne","followers_url":"https://api.github.com/users/nchaigne/followers","following_url":"https://api.github.com/users/nchaigne/following{/other_user}","gists_url":"https://api.github.com/users/nchaigne/gists{/gist_id}","starred_url":"https://api.github.com/users/nchaigne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nchaigne/subscriptions","organizations_url":"https://api.github.com/users/nchaigne/orgs","repos_url":"https://api.github.com/users/nchaigne/repos","events_url":"https://api.github.com/users/nchaigne/events{/privacy}","received_events_url":"https://api.github.com/users/nchaigne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-27T16:51:50Z","updated_at":"2015-03-27T17:30:15Z","closed_at":null,"body":"\r\nI have a FreeRADIUS doing DHCP (configured with \"cleanup_delay = 0\").\r\n\r\nI'm sending lots of DORA transactions to the server.\r\nI never reuse the same transaction ID, except within a given DORA (as specified in RFC 2131, the ID of the Request should be the same as in the corresponding Offer / Discover).\r\n\r\nThe issue is the following:\r\n\r\nI regularly get the following message in the logs:\r\n\r\n\tFri Mar 27 17:22:36 2015 : Error: Received conflicting packet from client dhcp port 42067 - ID: 98534 due to unfinished request.  Giving up on old request. child_state: 2, codes=1025 1027\r\n\r\n(I added \"child_state: 2, codes=1025 1027\" to try and understand what's going on...)\r\n\r\n\r\nFrom what I understand, this happens when:\r\nFreeRADIUS has processed a given Discover, sent back an Offer;\r\nReceives the Request corresponding to this Offer (same transaction Id), and finds the Discover still in his request hash (and apparently still with a child_state == REQUEST_RUNNING).\r\n\r\nI'm not sure how it can happen.\r\n\r\nIsn't the first packet supposed to be cleaned-up immediately with \"cleanup_delay\" set to 0 ?\r\nAnd even if it isn't, how can the child still be running the request ?\r\n\r\nMaybe there's a race condition ? it only seems to happen under heavy load.\r\n\r\n\r\n "},"comment":{"url":"https://api.github.com/repos/FreeRADIUS/freeradius-server/issues/comments/87023327","html_url":"https://github.com/FreeRADIUS/freeradius-server/issues/941#issuecomment-87023327","issue_url":"https://api.github.com/repos/FreeRADIUS/freeradius-server/issues/941","id":87023327,"user":{"login":"nchaigne","id":6780490,"avatar_url":"https://avatars.githubusercontent.com/u/6780490?v=3","gravatar_id":"","url":"https://api.github.com/users/nchaigne","html_url":"https://github.com/nchaigne","followers_url":"https://api.github.com/users/nchaigne/followers","following_url":"https://api.github.com/users/nchaigne/following{/other_user}","gists_url":"https://api.github.com/users/nchaigne/gists{/gist_id}","starred_url":"https://api.github.com/users/nchaigne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nchaigne/subscriptions","organizations_url":"https://api.github.com/users/nchaigne/orgs","repos_url":"https://api.github.com/users/nchaigne/repos","events_url":"https://api.github.com/users/nchaigne/events{/privacy}","received_events_url":"https://api.github.com/users/nchaigne/received_events","type":"User","site_admin":false},"created_at":"2015-03-27T17:30:15Z","updated_at":"2015-03-27T17:30:15Z","body":"OK, thanks again :)"}}