alibaba / alibaba/erlang_multi_pollset

gen_socket:connect 一直阻塞

Open
#4 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
223
Forks
41
PR merge metrics
No merged PRs in 30d

Description

按照首页文档创建服务器和客户端,
服务器accept返回,
3> {ok, S} = gen_socket:accept(L).
{ok,{140226430765064,<<>>}}

客户端connect一直阻塞
{ok, S} = gen_socket:connect("127.0.0.1", 10000, []).
tcpdump抓包三次握手也已经建立成功。

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the homepage server/client example and reproduce the blocking gen_socket:connect("127.0.0.1", 10000, []) call alongside the successful gen_socket:accept/ tcpdump results. Trace the connect entry point and compare the client and server behavior; done means the documented client connection returns instead of blocking, with the cause and verification recorded.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, erlang
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.