草庐IT

java - 什么时候抛出 "java.io.IOException:Connection reset by peer"?

ERRORGServerHandler-java.io.IOException:Connectionresetbypeerjava.io.IOException:Connectionresetbypeeratsun.nio.ch.FileDispatcher.read0(NativeMethod)atsun.nio.ch.SocketDispatcher.read(UnknownSource)atsun.nio.ch.IOUtil.readIntoNativeBuffer(UnknownSource)atsun.nio.ch.IOUtil.read(UnknownSource)atsu

ios - iOS6 上的 GCDAsyncUdpSocket 出现 "Connection reset by peer"错误

我在使用GCDAsyncUdpSocket时遇到问题。我将iPad用作与另一个应用程序交互的用户界面应用程序-称之为主机,后者在单独的Windows机器上运行。两台机器都在自己的专用网络上,因此它们在自己的子网上。在某些时候,主机会向​​iPad发送UDP数据包,以指示它向用户显示哪个屏幕,而iPad会通过UDP数据包将用户响应发送给主机。最后,iPad定期(以2Hz)向主机发送简单的“心跳”消息。这一切都很好-有一段时间了。然后,显然,iPad突然停止接受来自主机的UDP数据包-后者遇到“连接重置”错误,而它(iPad)仍在成功发送,主机接收心跳消息。我认为问题出在我对GrandCe

ios - GKSession 模式对端 : How to automatically connect two peers without any button/confirmation?

我想在两部没有GKPeerPickerController且没有按下任何“连接按钮”的情况下使用GKSession的iPhone之间建立蓝牙连接。我正在使用以下代码:currentSessionAuto=[[GKSessionalloc]initWithSessionID:@"instant-friend-auto"currentSessionAuto.delegate=self;currentSessionAuto.available=YES;currentSessionAuto.disconnectTimeout=5;[currentSessionAutosetDataReceiv

hadoop - hive ,直线 : Peer indicated failure: GSS initiate failed

我正在使用在Kerberos中添加的帐户启动beeline来测试Sentry:beeline-u"jdbc:hive2://IP:10000/;principal=test_table/domain_name@HADOOP.COM"但是JavaHotSpot(TM)64-BitServerVMwarning:ignoringoptionMaxPermSize=512M;supportwasremovedin8.0JavaHotSpot(TM)64-BitServerVMwarning:ignoringoptionMaxPermSize=512M;supportwasremovedin8

php - RabbitMQ 错误 : fwrite(): send of 12 bytes failed with errno=104 Connection reset by peer

我正在使用RabbitMQ库videlalvaro/php-amqplib在Laravel4.2里面应用程序,我开始收到以下错误:fwrite():sendof12bytesfailedwitherrno=104Connectionresetbypeer"任何人都可以提出任何可能导致此问题的建议吗? 最佳答案 "Connectionresetbypeer"istheTCP/IPequivalentofslammingthephonebackonthehook.It'smorepolitethanmerelynotreplying,l

php - 如何在 PHP 5.6 中通过 php.ini 设置 'verify_peer_name=false' SSL 上下文选项

案例:我想打开到localhost的SSL连接,而SSL证书是FQDN的问题。问题:如果(*)行中没有特殊处理,下面的程序将失败并显示以下消息:PHP警告:stream_socket_enable_crypto():对等证书CN='myhost.com'与test.php中预期的CN='localhost'不匹配测试PHP程序:$fp=stream_socket_client("tcp://localhost:993",$errno,$errstr,30);//(*)ifcommented,theprogramfails//stream_context_set_option($fp,'

android - java.net.SocketException : sendto failed: ECONNRESET (Connection reset by peer) 异常

我尝试使用此代码连接到服务器以上传图片。try{url=newURL(requestURL);HttpURLConnectionconn=(HttpURLConnection)url.openConnection();conn.setRequestProperty("connection","close");System.setProperty("http.keepAlive","false");conn.setReadTimeout(15000);conn.setConnectTimeout(15000);conn.setRequestMethod("POST");conn.setD

android - java.net.SocketException : recvfrom failed: ECONNRESET (Connection reset by peer) 异常

我在Android中有一个HTTP服务器。我为提到的链接中的每个HTTP请求创建了一个新线程:http://hc.apache.org/httpcomponents-core-ga/httpcore/examples/org/apache/http/examples/ElementalHttpServer.java.当我发出多个GET请求时,有时会出现如下异常:01-2210:28:22.779:W/System.err(2019):java.net.SocketException:recvfromfailed:ECONNRESET(Connectionresetbypeer)01-2

android - android kitkat 版本中的 javax.net.ssl.SSLException : Connection closed by peer.

我正在使用RESTapi连接到sslhttps上的服务器问题出在安卓kitkat设备上。所有kitkat版本或4.x.x的设备都没有与服务器建立连接javax.net.ssl.SSLException:Connectionclosedbypeeratcom.android.org.conscrypt.NativeCrypto.SSL_do_handshake(NativeMethod)在所有上述设备上,4.x.x工作正常并建立连接有什么解决办法吗?我也尝试过OkHttp,但它在我的事业中也不起作用。 最佳答案 我之前遇到过类似的问题

java.io.IOException : Connection reset by peer 异常

我正在尝试管理我的手机和另一台蓝牙设备之间的连接。我正在使用javaAndroid完成所有这些工作。这是我使用我的设备连接套接字时使用的代码:首先我找到蓝牙设备并创建套接字:BluetoothDevicebtNonin=null;for(BluetoothDevicedevice:pairedDevices){if(device.getName().contains("Nonin")){//Wefoundthedeviceexito=true;try{//WecreatethesocketMethodm=device.getClass().getMethod("createRfcomm