{"action":"opened","issue":{"url":"https://api.github.com/repos/nodejs/help/issues/1687","repository_url":"https://api.github.com/repos/nodejs/help","labels_url":"https://api.github.com/repos/nodejs/help/issues/1687/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/help/issues/1687/comments","events_url":"https://api.github.com/repos/nodejs/help/issues/1687/events","html_url":"https://github.com/nodejs/help/issues/1687","id":393331947,"node_id":"MDU6SXNzdWUzOTMzMzE5NDc=","number":1687,"title":"Question about socket.write callback and drain event.","user":{"login":"bgnx","id":30298641,"node_id":"MDQ6VXNlcjMwMjk4NjQx","avatar_url":"https://avatars3.githubusercontent.com/u/30298641?v=4","gravatar_id":"","url":"https://api.github.com/users/bgnx","html_url":"https://github.com/bgnx","followers_url":"https://api.github.com/users/bgnx/followers","following_url":"https://api.github.com/users/bgnx/following{/other_user}","gists_url":"https://api.github.com/users/bgnx/gists{/gist_id}","starred_url":"https://api.github.com/users/bgnx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgnx/subscriptions","organizations_url":"https://api.github.com/users/bgnx/orgs","repos_url":"https://api.github.com/users/bgnx/repos","events_url":"https://api.github.com/users/bgnx/events{/privacy}","received_events_url":"https://api.github.com/users/bgnx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-21T06:19:32Z","updated_at":"2018-12-21T06:19:32Z","closed_at":null,"author_association":"NONE","body":"How to know when data written to socket is reached to other side? I need to know this to send remaining part of some buffered data (data buffers in case when connections is closed due to bad network and new connection is made until it is ready).\r\nAnd the question came up - is callback of socket.write method or \"drain\" event fires only when data is flushed to kernel buffer (as documentations says) or when tcp acknowledgments of sent data was received ? If it indicates only flushing so how can I setup a callback to know when tcp acknowledgement packets of my sent data was received? If this possible with node? If no why such api haven't been added for years?"}}
{"actor":{"display_login":"bgnx"}}