Skip to content
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

fix: handle FDWatcher exception on closed sockets #254

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tanmaykm
Copy link
Member

@tanmaykm tanmaykm commented Aug 9, 2024

Adding checks to handle exception thrown while constructing FDWatcher if the socket handle is closed. Also checking the curl return code while adding handle to multi, and not proceeding if that failed.

Should fix #253

@aviks aviks requested a review from KristofferC August 22, 2024 16:18
@aviks
Copy link
Member

aviks commented Sep 17, 2024

@StefanKarpinski or @KristofferC eyes on this would be much appreciated.

@KristofferC
Copy link
Member

I don't really know anything about this code. But it has a merge conflict that needs to be fixed so CI can run.

Adding checks to handle exception thrown while constructing FDWatcher if the socket handle is closed.
Also checking the curl return code while adding handle to multi, and not proceeding if that failed.

Should fix JuliaLang#253
@tanmaykm tanmaykm force-pushed the tan/fix_socket_callback branch from 5643a85 to 2115a86 Compare September 18, 2024 03:28
Copy link

codecov bot commented Sep 18, 2024

Codecov Report

Attention: Patch coverage is 45.00000% with 11 lines in your changes missing coverage. Please review.

Project coverage is 89.36%. Comparing base (05f9ec2) to head (133b285).
Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
src/Curl/Multi.jl 53.84% 6 Missing ⚠️
src/Downloads.jl 28.57% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #254      +/-   ##
==========================================
- Coverage   89.70%   89.36%   -0.35%     
==========================================
  Files           5        5              
  Lines         583      630      +47     
==========================================
+ Hits          523      563      +40     
- Misses         60       67       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tanmaykm
Copy link
Member Author

I have updated the branch now.

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.

hung state due to race in socket_callback if socket closes just before watch
3 participants