Groups
Groups
Sign in
Groups
Groups
高性能服务器研发与运营邮件列表
Conversations
About
Send feedback
Help
errno 110错误????
30 views
Skip to first unread message
无双大蛇
unread,
Nov 5, 2009, 8:33:18 PM
11/5/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 高性能服务器研发与运营邮件列表
各位,小弟所在开发的服务器一直以来都受到errno=110(socket相关的错误,发送数据超时)的错误的,请求各位高手之前有没碰到过这样
的问题?能说一下解决的方法吗?不胜感激...
曹涛
unread,
Nov 5, 2009, 11:03:41 PM
11/5/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dev4s...@googlegroups.com
差看全部错误信息:
#include <string.h> /* for strerror */
#include <errno.h>
#include <stdio.h>
int main(int argc, char ** argv) {
int i = 0;
for(i = 0; i < 256; i++)
printf("errno.%02d is: %s\n", i, strerror(i));
return 0;
}
errno.110 is: Connection timed out
曹涛
2009/11/6 无双大蛇
<
ht8...@gmail.com
>
能说一下解决的方
无双大蛇
unread,
Nov 6, 2009, 12:26:29 AM
11/6/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 高性能服务器研发与运营邮件列表
这个错误其实还有一种情况下发生,详情请看<<UNIX网络编程>>第二卷第关于keepalive选项那一节
Jordan Fung
unread,
Nov 9, 2009, 1:01:34 AM
11/9/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 高性能服务器研发与运营邮件列表
里面提到keepalive失败会出现ECONNRSET错误,而socket超时(SO_RCVTIMEO/SO_SNDTIMEO)会导致
EAGAIN或EWOULDBLOCK错误,和你这个错误没有关系。
个人估计不是这个问题,能否贴一些代码出来分析分析?
无双大蛇
unread,
Nov 9, 2009, 2:30:55 AM
11/9/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 高性能服务器研发与运营邮件列表
很抱歉,代码贴不出来汗....因为代码所在网络和我现在上网所在网络不允许有代码的流动...
我想您可能看漏了,在第7章的"套接口选项"的7.5节的关于SO_KEEPALIVE选项中是有提及ETIMEOUT的...
flywav
unread,
Dec 2, 2009, 10:20:38 PM
12/2/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 高性能服务器研发与运营邮件列表
dest windows.size == 0?
sniffe to check.
Reply all
Reply to author
Forward
0 new messages