java.net.SocketException: Software caused connection abort: recv failed
åå ï¼æå¡ç«¯å°è¿æ¥å
³éäºï¼å¯è½åçäºå¼å¸¸ï¼ï¼ä½å®¢æ·ç«¯è¿å¨æ¥æ¶æ°æ®ã
æ»ç»äº§çåå ,å¨æå¡ç«¯/客æ·ç«¯åæ¹é¢å
³éè¿æ¥çæ
åµä¸,å¦ä¸æ¹ä¾ç¶ä»¥ä¸º
tcpè¿æ¥ä»ç¶å»ºç«,è¯å¾è¯»å对æ¹çååºæ°æ®,导è´åºç°
Software caused connection abort: recv failedçå¼å¸¸.
å æ¤å¨receiveæ°æ®ä¹å,è¦å
å¤æè¿æ¥ç¶æ.
éè¿inputstreamçavailable()æ¹æ³æ¥å¤æ,æ¯å¦æååºç»æ.
å¦æavailable()çè¿åå¼ä¸º0,说æ没æååºæ°æ®,å¯è½æ¯å¯¹æ¹å·²ç»æå¼è¿æ¥,
å¦æavailable()çè¿åå¼å¤§äº0,说ææååºæ°æ®.
å¦å¤å¼å¾æ³¨æçæ¯available()è¿åçå¼æ¯éå µå¡ç,å¯ä»¥è¢«å¤ä¸ªçº¿ç¨è®¿é®
温馨提示:内容为网友见解,仅供参考