{"action":"opened","issue":{"url":"https://api.github.com/repos/ybogdanov/node-sync/issues/46","labels_url":"https://api.github.com/repos/ybogdanov/node-sync/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/ybogdanov/node-sync/issues/46/comments","events_url":"https://api.github.com/repos/ybogdanov/node-sync/issues/46/events","html_url":"https://github.com/ybogdanov/node-sync/issues/46","id":92749666,"number":46,"title":"Hangs on block","user":{"login":"shadowcodex","id":1348053,"avatar_url":"https://avatars.githubusercontent.com/u/1348053?v=3","gravatar_id":"","url":"https://api.github.com/users/shadowcodex","html_url":"https://github.com/shadowcodex","followers_url":"https://api.github.com/users/shadowcodex/followers","following_url":"https://api.github.com/users/shadowcodex/following{/other_user}","gists_url":"https://api.github.com/users/shadowcodex/gists{/gist_id}","starred_url":"https://api.github.com/users/shadowcodex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shadowcodex/subscriptions","organizations_url":"https://api.github.com/users/shadowcodex/orgs","repos_url":"https://api.github.com/users/shadowcodex/repos","events_url":"https://api.github.com/users/shadowcodex/events{/privacy}","received_events_url":"https://api.github.com/users/shadowcodex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-02T22:34:38Z","updated_at":"2015-07-02T22:34:38Z","closed_at":null,"body":"So I created a function, and I call it with sync. However the program completely blocks and won't move past that call. The call finishes and it just sits. \r\n\r\nOnce I remove sync then it moves forward. \r\n\r\nI am trying to call this function which in turn calls 20 or so https requests, and database connections. When they all finish I want to close the database connection (it is persistent until closed (elastic search)). However it never reaches the client.close() and thus the process never ends.\r\n\r\nIdeas?"}}