{"issue":{"state":"open","created_at":"2011-08-29T14:37:04Z","updated_at":"2011-11-21T03:02:34Z","comments":2,"user":{"gravatar_id":"e87abfa44fed49013a5da329ceaf91a9","id":296507,"url":"https://api.github.com/users/bladeofsteel","login":"bladeofsteel","avatar_url":"https://secure.gravatar.com/avatar/e87abfa44fed49013a5da329ceaf91a9?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"If mongod is not available, any request to nginx will lead to crash","assignee":null,"id":1510453,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":35,"title":"Nginx crash when mongo is not available","html_url":"https://github.com/mdirolf/nginx-gridfs/issues/35","closed_at":null,"milestone":null,"url":"https://api.github.com/repos/mdirolf/nginx-gridfs/issues/35"},"action":"created","comment":{"created_at":"2011-11-21T03:02:34Z","updated_at":"2011-11-21T03:02:34Z","user":{"gravatar_id":"b4046a83c88f4b98c4a37920d674a3cb","id":158801,"url":"https://api.github.com/users/kiwanami","login":"kiwanami","avatar_url":"https://secure.gravatar.com/avatar/b4046a83c88f4b98c4a37920d674a3cb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"This problem is caused by the signal SIG_PIPE from the mongo-c-driver code.\r\nI tried to fix the problem by following patches:\r\nhttps://github.com/kiwanami/mongo-c-driver/commit/5062c1670ea2421748fd1b549277fe4e5414e2bd\r\nhttps://github.com/kiwanami/nginx-gridfs/commit/0fb612ea7e4cb6305fc8f763ed7ca3778c5f2452\r\nThese patches fixed the problem and the nginx can resume the connection.\r\n\r\nHowever, these patches remain crash of the child process at the nginx startup.\r\nI would like to contribute to mdirolf's master branch. But it is not straightforward because of c-driver's code.\r\nHow should I do?","id":2810375,"url":"https://api.github.com/repos/mdirolf/nginx-gridfs/issues/comments/2810375"}}