How to fix “PG::Error: Wait on socket” error when accessing Postgres DB in Rails 3 app

大憨熊 提交于 2019-12-20 05:49:20

问题


One of our application is built on Rails 3 which uses postgres as database. We observe that while doing load test i.e continuously submitting request, there are random exceptions related to database (comes from postgres_adapter):

1. PG::Error: Wait on socket error (WaitForMultipleObjects):
2. NoMethodError: undefined method `result_error_field' for nil:NilClass: 

I am not able to find any reference on cause of these issues as they're coming at different points. Any help on how to avoid this or solve this would be helpful.

Thanks

来源:https://stackoverflow.com/questions/58318742/how-to-fix-pgerror-wait-on-socket-error-when-accessing-postgres-db-in-rails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!