简体   繁体   English

hg 更新导致临时端口读/写问题

[英]hg update causing temporary port read/write issues

I am having a strange issue with apache and ssh, that I can correlate to the hg update command. apache 和 ssh 有一个奇怪的问题,我可以将其与 hg update 命令相关联。

After executing执行后

$ hg update

on a remote server from a changeset push of more than 1 or 2 files.从超过 1 或 2 个文件的变更集推送到远程服务器上。 For about a minute afterward, the apache server returns 403(on local files such as images), and 404(on external files such as jquery libraries).大约一分钟后,apache 服务器返回 403(在图像等本地文件上)和 404(在 jquery 库等外部文件上)。

Also, during the same time period if I try and push more changes to the remote server, I get the response此外,在同一时间段内,如果我尝试将更多更改推送到远程服务器,我会收到响应

remote: ssh: connect to host * hostname * port 22: No route to host

After about 1 or 2 minutes the issue goes away, and the server returns to a working state with the new changes successfully in place.大约 1 或 2 分钟后,问题消失,服务器返回到正常工作的 state,新更改成功到位。

After I execute hg update, the shell returns right away without a response.执行 hg update 后,shell 立即返回而没有响应。 Normally when this happens the changes are successfully in place.通常,当这种情况发生时,更改会成功到位。

The only guess that I have is that mercurial is hanging as a background process and locking httpd and sshd operations somehow?我唯一的猜测是 mercurial 作为后台进程挂起并以某种方式锁定 httpd 和 sshd 操作?

I looked in the apache logs and there aren't any errors indicating anything out of the ordinary is going on.我查看了 apache 日志,没有任何错误表明正在发生任何异常情况。

UPDATE更新

I found two errors in my apache error_log that I think might be related.我在 apache error_log 中发现了两个我认为可能相关的错误。

(104)Connection reset by peer: core_output_filter: writing data to the network
(32)Broken pipe: core_output_filter: writing data to the network

The mercurial issue went away when I restarted my apache server.当我重新启动 apache 服务器时,mercurial 问题消失了。 However I would like to know what caused the issue in the first place.但是,我想首先知道是什么导致了这个问题。

The two log errors still persist as well despite, turning EnableSendFile and EnableMMAP off in the httpd.conf尽管在 httpd.conf 中关闭 EnableSendFile 和 EnableMMAP,这两个日志错误仍然存在

Thanks,谢谢,

Ed埃德

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM