本文介绍了Eiffel Web Framework,在Linux上运行的应用引发了“地址已在使用中:引发IO_FAILURE"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在停止EWF应用并在已经使用的地址中再次启动它之后:c_bind Address already in use: IO_FAILURE raised

After stopping an EWF app and starting it again in a Address already in use: c_bind Address already in use: IO_FAILURE raised

此处所述,TCP套接字超时在操作系统释放之前似乎不可用

As explained here, it seems that TCP socket timeout is not available for some time before being released by OS.

推荐答案

我发现的最佳解决方法是

The best workaround I found is

sudo sh -c 'echo 1 > /proc/sys/net/ipv4/tcp_tw_recycle'

此答案的信用

改变了一切.第二个开瓶器"仅用了3秒钟就获得了新的插槽.

did change things. The second "opener" only took about 3 seconds to get its new socket.

这篇关于Eiffel Web Framework,在Linux上运行的应用引发了“地址已在使用中:引发IO_FAILURE"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 23:49