[英]An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full - wamp server
I am creating a browser-based game using PHP,Javascript and HTML5 and I am testing it on a local wamp server. 我正在使用PHP,Javascript和HTML5创建基于浏览器的游戏,并正在本地wamp服务器上对其进行测试。 However sometimes I get the following error: 但是有时我会收到以下错误:
Warning: mysqli::mysqli(): (HY000/2002): An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.
It flashes on the screen (like a SCREAM error) and then dissapears. 它在屏幕上闪烁(如SCREAM错误),然后消失。 It doesn't affect the functionality of the application, but sometimes it can stay up to 5-10s on the screen. 它不会影响应用程序的功能,但是有时它可以在屏幕上停留5-10秒钟。 I mention that I am using a lot of AJAX requests to operate modifications in the database, the most notable one being the fact that i have a timer that reads the svg map set at 2s. 我提到我正在使用许多AJAX请求来操作数据库中的修改,最值得注意的一个事实是我有一个计时器,该计时器读取设置为2s的svg映射。 I found the following lines in the my.ini (mysql configuration file). 我在my.ini(mysql配置文件)中找到了以下几行。 Should I try to modify some of these values? 我应该尝试修改其中一些值吗?
# The MySQL server
[wampmysqld]
port = 3306
socket = /tmp/mysql.sock
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
basedir=c:/wamp/bin/mysql/mysql5.5.24
log-error=c:/wamp/logs/mysql.log
datadir=c:/wamp/bin/mysql/mysql5.5.24/data
Or perhaps I should take a look in the php.ini file? 还是我应该看看php.ini文件? Also, I am running the wamp server on Windows 7. 另外,我正在Windows 7上运行wamp服务器。
Please check this steps: 请检查以下步骤:
http://blogs.msdn.com/b/sql_protocols/archive/2009/03/09/understanding-the-error-an-operation-on-a-socket-could-not-be-performed-because-the-system-lacked-sufficient-buffer-space-or-because-a-queue-was-full.aspx http://blogs.msdn.com/b/sql_protocols/archive/2009/03/09/understanding-the-error-an-operation-on-a-socket-could-not-be-performed-because-the-系统缺少足够的缓冲区空间或由于队列已满.aspx
Mine problem was the same, first solution listed there helped! 我的问题是一样的,那里列出的第一个解决方案有所帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.