Azure server got error “system lacked sufficient buffer space or because a queue was full Ip”

孤人 提交于 2020-01-25 05:05:37

问题


i have hosted my project on azure server of Asp.net MVC, and i have used azure sql, its work fine, but number of times while performing any operation , i.e. when fire calls from controller it gives error like,

"An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full Ip"

and after few minutes its starts to work fine, can anyone tell me why this error is throwing or is there any solution for this??


回答1:


This is most probably client side issue (ASP.Net app side). This could happen if you do A LOT of simultaneous socket connections or do not dispose connections properly. Please double check your application and make sure that:

  1. You properly close all database connections (use using() or call Dispose()).
  2. You properly close any other socket connection (if any).

If your code is fine, you can try to use Transient Fault Handling App Block. It won't solve the issue itself but could help your app to workaround it.



来源:https://stackoverflow.com/questions/23211017/azure-server-got-error-system-lacked-sufficient-buffer-space-or-because-a-queue

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