leroy-merlin-br / mongolid-laravel

Easy, powerful and ultrafast MongoDB ODM for Laravel.
MIT License
240 stars 41 forks source link

Mongolid crashes laravel when mongod crashes #32

Closed programming-kid closed 6 years ago

programming-kid commented 11 years ago

hey Zizaco i don't know is this a bug or some error on my part but i think this is a serious error when laravel loads it opens a new mongodb connection . Everything work fine until mongodb crashes after mongodb crashes laravel crashes too with following error

MongoClient::__construct(): send of 58 bytes failed with errno=10054 An existing 
connection was forcibly closed by the remote host

and refuses to load thereafter until apache server is restarted . After web server is restarted with mongodb running eveything works fime until mongodb crashes again

i don't know whats wrong please help thank you

Zizaco commented 11 years ago

Thanks for reporting this... i will solve it as soon as possible.

programming-kid commented 11 years ago

i think it something to do with whoops i tried replicating error with native php MongoClient, but it fails silently but when i install whoops it gives the above error .