{"action":"created","issue":{"url":"https://api.github.com/repos/mogui/pyorient/issues/163","labels_url":"https://api.github.com/repos/mogui/pyorient/issues/163/labels{/name}","comments_url":"https://api.github.com/repos/mogui/pyorient/issues/163/comments","events_url":"https://api.github.com/repos/mogui/pyorient/issues/163/events","html_url":"https://github.com/mogui/pyorient/pull/163","id":125463646,"number":163,"title":"Checking socket validity on write to detect broken connection.","user":{"login":"obi1kenobi","id":2348618,"avatar_url":"https://avatars.githubusercontent.com/u/2348618?v=3","gravatar_id":"","url":"https://api.github.com/users/obi1kenobi","html_url":"https://github.com/obi1kenobi","followers_url":"https://api.github.com/users/obi1kenobi/followers","following_url":"https://api.github.com/users/obi1kenobi/following{/other_user}","gists_url":"https://api.github.com/users/obi1kenobi/gists{/gist_id}","starred_url":"https://api.github.com/users/obi1kenobi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obi1kenobi/subscriptions","organizations_url":"https://api.github.com/users/obi1kenobi/orgs","repos_url":"https://api.github.com/users/obi1kenobi/repos","events_url":"https://api.github.com/users/obi1kenobi/events{/privacy}","received_events_url":"https://api.github.com/users/obi1kenobi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-07T19:03:56Z","updated_at":"2016-01-13T18:01:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mogui/pyorient/pulls/163","html_url":"https://github.com/mogui/pyorient/pull/163","diff_url":"https://github.com/mogui/pyorient/pull/163.diff","patch_url":"https://github.com/mogui/pyorient/pull/163.patch"},"body":"This attempts to fix an issue I observed in the project I am working on. If my server remains idle for a long time, and then gets a request, its db connection seems to have died but the socket is not marked closed. The subsequent write to the socket hangs forever, and takes my server down with it."},"comment":{"url":"https://api.github.com/repos/mogui/pyorient/issues/comments/171380923","html_url":"https://github.com/mogui/pyorient/pull/163#issuecomment-171380923","issue_url":"https://api.github.com/repos/mogui/pyorient/issues/163","id":171380923,"user":{"login":"Ostico","id":8008416,"avatar_url":"https://avatars.githubusercontent.com/u/8008416?v=3","gravatar_id":"","url":"https://api.github.com/users/Ostico","html_url":"https://github.com/Ostico","followers_url":"https://api.github.com/users/Ostico/followers","following_url":"https://api.github.com/users/Ostico/following{/other_user}","gists_url":"https://api.github.com/users/Ostico/gists{/gist_id}","starred_url":"https://api.github.com/users/Ostico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ostico/subscriptions","organizations_url":"https://api.github.com/users/Ostico/orgs","repos_url":"https://api.github.com/users/Ostico/repos","events_url":"https://api.github.com/users/Ostico/events{/privacy}","received_events_url":"https://api.github.com/users/Ostico/received_events","type":"User","site_admin":false},"created_at":"2016-01-13T18:01:20Z","updated_at":"2016-01-13T18:01:20Z","body":"I know it is hard to put under test the socket status failures. In this case i think we can rely on python resilience."}}