{"action":"created","issue":{"url":"https://api.github.com/repos/tananaev/traccar/issues/1470","labels_url":"https://api.github.com/repos/tananaev/traccar/issues/1470/labels{/name}","comments_url":"https://api.github.com/repos/tananaev/traccar/issues/1470/comments","events_url":"https://api.github.com/repos/tananaev/traccar/issues/1470/events","html_url":"https://github.com/tananaev/traccar/issues/1470","id":112883370,"number":1470,"title":"UDP stops listening after failure","user":{"login":"vitalidze","id":2294325,"avatar_url":"https://avatars.githubusercontent.com/u/2294325?v=3","gravatar_id":"","url":"https://api.github.com/users/vitalidze","html_url":"https://github.com/vitalidze","followers_url":"https://api.github.com/users/vitalidze/followers","following_url":"https://api.github.com/users/vitalidze/following{/other_user}","gists_url":"https://api.github.com/users/vitalidze/gists{/gist_id}","starred_url":"https://api.github.com/users/vitalidze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitalidze/subscriptions","organizations_url":"https://api.github.com/users/vitalidze/orgs","repos_url":"https://api.github.com/users/vitalidze/repos","events_url":"https://api.github.com/users/vitalidze/events{/privacy}","received_events_url":"https://api.github.com/users/vitalidze/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-22T20:20:03Z","updated_at":"2015-10-22T20:44:31Z","closed_at":null,"body":"We have a 'gator' device, which uses 'gator' protocol (port 5052). From my understanding in current traccar version (3.1) it is working through UDP protocol (and BTW we don't know how to configure it for TCP, but it's not the case). We were messing with device configuration and received following packets:\r\n\r\n````\r\n2015-10-22 00:11:31 DEBUG: [70E792A4: 5052 < 61.245.163.243] HEX: 242421000643e30282070d\r\n2015-10-22 00:11:45 DEBUG: [70E792A4: 5052 < 61.245.163.243] HEX: 242400\r\n2015-10-22 00:11:45  WARN: [70E792A4] error - Not enough readable bytes - Need 2, maximum is 0 - IndexOutOfBoundsException (... < GatorProtocolDecoder.java:59 < ExtendedObjectDecoder.java:39 < ...)\r\n````\r\n\r\nAfter that message traccar stops listening on UDP port 5052 and not displayed in `netstat -nlu` command. I know that device sends an invalid message, but why does it stops listening after that failure? Please advise."},"comment":{"url":"https://api.github.com/repos/tananaev/traccar/issues/comments/150350961","html_url":"https://github.com/tananaev/traccar/issues/1470#issuecomment-150350961","issue_url":"https://api.github.com/repos/tananaev/traccar/issues/1470","id":150350961,"user":{"login":"tananaev","id":1161863,"avatar_url":"https://avatars.githubusercontent.com/u/1161863?v=3","gravatar_id":"","url":"https://api.github.com/users/tananaev","html_url":"https://github.com/tananaev","followers_url":"https://api.github.com/users/tananaev/followers","following_url":"https://api.github.com/users/tananaev/following{/other_user}","gists_url":"https://api.github.com/users/tananaev/gists{/gist_id}","starred_url":"https://api.github.com/users/tananaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tananaev/subscriptions","organizations_url":"https://api.github.com/users/tananaev/orgs","repos_url":"https://api.github.com/users/tananaev/repos","events_url":"https://api.github.com/users/tananaev/events{/privacy}","received_events_url":"https://api.github.com/users/tananaev/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T20:44:31Z","updated_at":"2015-10-22T20:44:31Z","body":"I have tested the message on the latest build (from GitHub source code) and it works correctly. It's a heartbeat message (type 0x21)."}}