{"action":"closed","issue":{"url":"https://api.github.com/repos/arvidn/libtorrent/issues/1020","repository_url":"https://api.github.com/repos/arvidn/libtorrent","labels_url":"https://api.github.com/repos/arvidn/libtorrent/issues/1020/labels{/name}","comments_url":"https://api.github.com/repos/arvidn/libtorrent/issues/1020/comments","events_url":"https://api.github.com/repos/arvidn/libtorrent/issues/1020/events","html_url":"https://github.com/arvidn/libtorrent/issues/1020","id":172313217,"number":1020,"title":"Setting the listen interfaces fails","user":{"login":"MassaRoddel","id":15848464,"avatar_url":"https://avatars.githubusercontent.com/u/15848464?v=3","gravatar_id":"","url":"https://api.github.com/users/MassaRoddel","html_url":"https://github.com/MassaRoddel","followers_url":"https://api.github.com/users/MassaRoddel/followers","following_url":"https://api.github.com/users/MassaRoddel/following{/other_user}","gists_url":"https://api.github.com/users/MassaRoddel/gists{/gist_id}","starred_url":"https://api.github.com/users/MassaRoddel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MassaRoddel/subscriptions","organizations_url":"https://api.github.com/users/MassaRoddel/orgs","repos_url":"https://api.github.com/users/MassaRoddel/repos","events_url":"https://api.github.com/users/MassaRoddel/events{/privacy}","received_events_url":"https://api.github.com/users/MassaRoddel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-08-21T09:40:47Z","updated_at":"2016-08-23T15:40:51Z","closed_at":"2016-08-23T15:40:51Z","body":"libtorrent version (or branch): master\r\nplatform/architecture: windows\r\ncompiler and compiler version: VS2015\r\n\r\nIf I try to set the listen interfaces (settings_pack::listen_interfaces) for ipv4 and ipv6 right after the session is created the tcp sockets seem to get closed immediately (udp sockets work as expected). I did some debugging and the tcp sockets are open in reopen_listen_sockets() but they get closed from somewhere else, it seems.\r\nFurther attempts to set the listen_interfaces succeed.\r\nCould there be a race condition between setting the defaults at session startup and calls to settings_pack::listen_interfaces?\r\nMight it be necessary to wait for listen_succeeded_alert alerts before you can set a new one?\r\n"}}
{"actor":{"display_login":"arvidn"}}