-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
. fuseif.h, fuseif.cpp: probably found the cause of 'EchoMany lost re…
…sp' issue. Actually the response of EchoMany did not lose, and instead, github does not log the hanging program, which is seemingly like the program hangs at the first request EchoMany waiting for its response. But actually the last request EchoStream request was also completed. And most likely this time, the program hangs endlessly at the call to 'select' on the stmfile because of a race condition between fs_poll and OnStmRecv. That is, There is a slim chance when the fs_poll checked to found no data, and then preempted right before it leave the notify handle, the OnStmRecv arrived and found there is no notify handle, and left, and when the fs_poll got back the control and set the pollhandle, the pollhandle will never be notified, because the OnStmRecv has gone. Now I have added to stmfile a FillAndNotify to address this issue.
- Loading branch information
Showing
2 changed files
with
26 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters