简体   繁体   English

java.net.SocketException:MSSQL DB的管道中断

[英]java.net.SocketException: Broken pipe For MSSQL DB

I'm suffering from 我患有

java.net.SocketException: Broken pipe Exception

after I disconnect the network (by removing the network cable) and plug the network cable back in. This error occurs for MSSQL DB and connect using JTurbo driver. 在断开网络连接(通过拔下网络电缆)并重新插入网络电缆之后。对于MSSQL DB并使用JTurbo驱动程序进行连接,将发生此错误。 I want to auto-reconnect after a connection is established. 建立连接后,我想自动重新连接。 How can I fix this? 我怎样才能解决这个问题?

No you don't. 不,你不会。 You have a network failure, ie a failure in a distributed system, which can therefore be a partial failure. 您有网络故障,即分布式系统中的故障,因此可能是部分故障。 You don't know whether the transaction has completed or not. 您不知道交易是否完成。 You can't hide that under the covers of an auto-retry. 您无法将其隐藏在自动重试的掩盖下。 The application needs to know about it. 该应用程序需要了解它。

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

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