-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pconnect_n超时问题 #201
Labels
Milestone
Comments
你是传的域名吗 |
看看域名是不是返回了多个ip地址 |
xpconnect_n和pconnect_n执行了两次select;connect_n执行了一次select。 |
pconnect_n是直接调用connect_n不会进行域名解析 |
擦,这么神奇,直接写ip地址,尽然还能有两个 |
嗯,你试试呢 |
我手上没有mac电脑,我win10上测试超时正常 |
我找到问题所在了 |
这个会影响udp吗? |
不会 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
int pconnect_n(const char* hostname, u_short port,
const std::chrono::microseconds& wtimeout, u_short local_port = 0);
这个运行,我发现超时是两倍wtimeout,设一秒,两秒报超时。
mac上测试的。
The text was updated successfully, but these errors were encountered: