{"action":"created","issue":{"url":"https://api.github.com/repos/sdamm/asio_dtls/issues/2","repository_url":"https://api.github.com/repos/sdamm/asio_dtls","labels_url":"https://api.github.com/repos/sdamm/asio_dtls/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/sdamm/asio_dtls/issues/2/comments","events_url":"https://api.github.com/repos/sdamm/asio_dtls/issues/2/events","html_url":"https://github.com/sdamm/asio_dtls/issues/2","id":351823623,"node_id":"MDU6SXNzdWUzNTE4MjM2MjM=","number":2,"title":"Problems with asynchronous model","user":{"login":"vinniefalco","id":1503976,"node_id":"MDQ6VXNlcjE1MDM5NzY=","avatar_url":"https://avatars3.githubusercontent.com/u/1503976?v=4","gravatar_id":"","url":"https://api.github.com/users/vinniefalco","html_url":"https://github.com/vinniefalco","followers_url":"https://api.github.com/users/vinniefalco/followers","following_url":"https://api.github.com/users/vinniefalco/following{/other_user}","gists_url":"https://api.github.com/users/vinniefalco/gists{/gist_id}","starred_url":"https://api.github.com/users/vinniefalco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinniefalco/subscriptions","organizations_url":"https://api.github.com/users/vinniefalco/orgs","repos_url":"https://api.github.com/users/vinniefalco/repos","events_url":"https://api.github.com/users/vinniefalco/events{/privacy}","received_events_url":"https://api.github.com/users/vinniefalco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-08-18T14:13:22Z","updated_at":"2018-09-04T08:58:55Z","closed_at":null,"author_association":"NONE","body":"NIce work, but this code has some defects. In particular, handler helpers passed to initiating functions lose the associated executor and associated allocator. For example, this code is wrong:\r\nhttps://github.com/sdamm/asio_dtls/blob/7eccc52df5262cf0ac83702bd827b9f9fd2d5502/include/asio/ssl/dtls/acceptor.hpp#L765\r\n\r\nThere are also other places which violate Asio preconditions. I suggest reading this composed operation tutorial:\r\nhttps://www.boost.org/doc/libs/1_68_0/libs/beast/doc/html/beast/using_io/writing_composed_operations.html\r\n"},"comment":{"url":"https://api.github.com/repos/sdamm/asio_dtls/issues/comments/418293363","html_url":"https://github.com/sdamm/asio_dtls/issues/2#issuecomment-418293363","issue_url":"https://api.github.com/repos/sdamm/asio_dtls/issues/2","id":418293363,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODI5MzM2Mw==","user":{"login":"sdamm","id":11834140,"node_id":"MDQ6VXNlcjExODM0MTQw","avatar_url":"https://avatars2.githubusercontent.com/u/11834140?v=4","gravatar_id":"","url":"https://api.github.com/users/sdamm","html_url":"https://github.com/sdamm","followers_url":"https://api.github.com/users/sdamm/followers","following_url":"https://api.github.com/users/sdamm/following{/other_user}","gists_url":"https://api.github.com/users/sdamm/gists{/gist_id}","starred_url":"https://api.github.com/users/sdamm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdamm/subscriptions","organizations_url":"https://api.github.com/users/sdamm/orgs","repos_url":"https://api.github.com/users/sdamm/repos","events_url":"https://api.github.com/users/sdamm/events{/privacy}","received_events_url":"https://api.github.com/users/sdamm/received_events","type":"User","site_admin":false},"created_at":"2018-09-04T08:58:55Z","updated_at":"2018-09-04T08:58:55Z","author_association":"OWNER","body":"The problem is, that i don't do a listen as udp sockets don't provide this. Instead it does a async_receive_from apart from that it sets the cookie_generate and verify_callbacks (this could be done before passing the socket to async_accept). Not sure the async_receive_from can be done with the `basic_socket_acceptor`, as it directly uses the <reactive/...>_socket_service which does listen.\r\nAfter the `async_receive_from` the cookie gets verified and the callback is called if the cookie matched (if not the client gets a HelloVerifyRequest and should try again with the correct cookie).\r\n\r\nThe `handler_base` is dead code so i will remove it.\r\n\r\n"}}
{"actor":{"display_login":"sdamm"}}