{"action":"created","issue":{"url":"https://api.github.com/repos/IBM-Swift/Kitura-NIO/issues/2","repository_url":"https://api.github.com/repos/IBM-Swift/Kitura-NIO","labels_url":"https://api.github.com/repos/IBM-Swift/Kitura-NIO/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/IBM-Swift/Kitura-NIO/issues/2/comments","events_url":"https://api.github.com/repos/IBM-Swift/Kitura-NIO/issues/2/events","html_url":"https://github.com/IBM-Swift/Kitura-NIO/issues/2","id":322823363,"node_id":"MDU6SXNzdWUzMjI4MjMzNjM=","number":2,"title":"Bind errors while running Kitura and Kitura-NIO tests","user":{"login":"pushkarnk","id":4761859,"node_id":"MDQ6VXNlcjQ3NjE4NTk=","avatar_url":"https://avatars1.githubusercontent.com/u/4761859?v=4","gravatar_id":"","url":"https://api.github.com/users/pushkarnk","html_url":"https://github.com/pushkarnk","followers_url":"https://api.github.com/users/pushkarnk/followers","following_url":"https://api.github.com/users/pushkarnk/following{/other_user}","gists_url":"https://api.github.com/users/pushkarnk/gists{/gist_id}","starred_url":"https://api.github.com/users/pushkarnk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pushkarnk/subscriptions","organizations_url":"https://api.github.com/users/pushkarnk/orgs","repos_url":"https://api.github.com/users/pushkarnk/repos","events_url":"https://api.github.com/users/pushkarnk/events{/privacy}","received_events_url":"https://api.github.com/users/pushkarnk/received_events","type":"User","site_admin":false},"labels":[{"id":932319713,"node_id":"MDU6TGFiZWw5MzIzMTk3MTM=","url":"https://api.github.com/repos/IBM-Swift/Kitura-NIO/labels/good%20first%20issue","name":"good first issue","color":"7057ff","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-05-14T13:45:12Z","updated_at":"2018-08-24T09:54:10Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"With SwiftNIO, Channel.close() calls close(socket) which moves the underlying socket to the TIMED_WAIT state. In this state, subsequent bind calls fail, until the socket moves out of the TIMED_WAIT state and is actually closed. Kitura tests fail frequently with this error. While using Kitura-net that uses BlueSocket, I can see a shutdown(socket) being issued before close(socket). That may be the reason why this failure isn't seen with KituraNet. Needs investigation.\r\n\r\nWe can workaround this using `HTTPServer.allowPortReuse = true`"},"comment":{"url":"https://api.github.com/repos/IBM-Swift/Kitura-NIO/issues/comments/415711929","html_url":"https://github.com/IBM-Swift/Kitura-NIO/issues/2#issuecomment-415711929","issue_url":"https://api.github.com/repos/IBM-Swift/Kitura-NIO/issues/2","id":415711929,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTcxMTkyOQ==","user":{"login":"pushkarnk","id":4761859,"node_id":"MDQ6VXNlcjQ3NjE4NTk=","avatar_url":"https://avatars1.githubusercontent.com/u/4761859?v=4","gravatar_id":"","url":"https://api.github.com/users/pushkarnk","html_url":"https://github.com/pushkarnk","followers_url":"https://api.github.com/users/pushkarnk/followers","following_url":"https://api.github.com/users/pushkarnk/following{/other_user}","gists_url":"https://api.github.com/users/pushkarnk/gists{/gist_id}","starred_url":"https://api.github.com/users/pushkarnk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pushkarnk/subscriptions","organizations_url":"https://api.github.com/users/pushkarnk/orgs","repos_url":"https://api.github.com/users/pushkarnk/repos","events_url":"https://api.github.com/users/pushkarnk/events{/privacy}","received_events_url":"https://api.github.com/users/pushkarnk/received_events","type":"User","site_admin":false},"created_at":"2018-08-24T09:54:10Z","updated_at":"2018-08-24T09:54:10Z","author_association":"CONTRIBUTOR","body":"@weissi Now I recall it better, we needed `SO_REUSEPORT` for a particular test called `testServersSharingPort`. Looks like `SO_REUSEADDR` is enough for this issue."}}
{"actor":{"display_login":"pushkarnk"}}