转到 /etc/httpd/conf/httpd.conf 甚至更改后
Allow override none -> Allow override All , and then restarting the server using
service httpd restart
Run Code Online (Sandbox Code Playgroud)
然后我输入命令
a2enmod proxy
Run Code Online (Sandbox Code Playgroud)
然后我收到一个错误:
bash- a2enmod command not found. .
Run Code Online (Sandbox Code Playgroud)
你能帮我么?当我使用 web-sockets 时,我在开发人员工具控制台中收到一个错误,因此我需要启用 web-sockets 代理。
如果我设置pingTimeout: 3000和pingInterval: 2000; 如果同时有800个插座连接; 这会对服务器性能有任何问题或提供延迟吗?当socket.io文档说服务器将等待pingTimeout(ms)断开套接字(如果它没有获得pong数据包)(这意味着套接字空闲)时,我们的意思是什么.当我们说套接字空闲时会涉及哪些情况?这是否意味着如果用户在页面上处于活动状态但未点击任何内容,则表示套接字是否空闲?
我只想知道socket.io中pingTimeout和PingInterval的默认值是多少?我在文档中读到的值是:
pingTimeout (Number): how many ms without a pong packet to consider the connection closed (60000)
pingInterval (Number): how many ms before sending a new ping packet (25000).
Run Code Online (Sandbox Code Playgroud)
这些是默认值吗?