alibaba / alibaba/PhotonLibOS

Close connection in different photon thread

Open
#925 1 comment 0 reactions 0 assignees View on GitHub
Done
Dominant language
C++
Stars
1.2k
Forks
179
Avg merge
1d 15h
Merged PRs (30d)
26

Description

TCP connection is running in one photon thread, in a way of busy loop receiving and sending data and yield.
Is it safe to close this connection from another photon thread (both photon threads are in the same vCPU) ?
If not, what is the recommend way ?

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files, tests, or entry points. Start by tracing the TCP connection lifecycle and existing close or shutdown APIs, then inspect how photon threads coordinate access to the same connection. Done means the supported cross-thread close behavior and recommended usage are established in the relevant project documentation or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
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.