Socket超时有两种:
1、 连接超时;
s.connect(socketAddress, 30000);
2、 Read超时;
s.setSoTimeout(30000);
posted on 2012-09-04 18:11 Brown Qin 阅读(356) 评论(0) 编辑 收藏 举报