Skip to content

Add FiberScheduler::connect and FiberScheduler::accept#52

Merged
vadimskipin merged 1 commit into
mainfrom
connect
May 29, 2026
Merged

Add FiberScheduler::connect and FiberScheduler::accept#52
vadimskipin merged 1 commit into
mainfrom
connect

Conversation

@mstetsyuk

@mstetsyuk mstetsyuk commented May 28, 2026

Copy link
Copy Markdown
Member

io_uring supports connect and accept, so we can add FiberScheduler::connect and FiberScheduler::accept to avoid configuring non-blocking sockets and calling FiberScheduler::poll as it's more code and extra syscalls

@vadimskipin vadimskipin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be great to have both connect/accept supported.

Comment thread src/perf/net-perf.cpp Outdated
@mstetsyuk mstetsyuk changed the title Add FiberScheduler::connect Add FiberScheduler::connect and FiberScheduler::accept May 29, 2026
@vadimskipin

Copy link
Copy Markdown
Collaborator

please use bb fmt to format the code

keep SOCK_NONBLOCK

accept and tests

bb fmt
@mstetsyuk
mstetsyuk marked this pull request as ready for review May 29, 2026 17:30
@vadimskipin
vadimskipin merged commit 6a4742b into main May 29, 2026
14 checks passed
@vadimskipin
vadimskipin deleted the connect branch May 29, 2026 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants