[GH-ISSUE #437] Why exit the process when encounter unknown curl errors? #237

Closed
opened 2026-03-04 01:43:33 +03:00 by kerem · 5 comments
Owner

Originally created by @rockuw on GitHub (Jun 24, 2016).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/437

//curl.cpp:2047
      // Unknown CURL return code
      default:
        S3FS_PRN_CRIT("###curlCode: %d  msg: %s", curlCode, curl_easy_strerror(curlCode));
        exit(EXIT_FAILURE);
        break;

Even if we cannot handle the curl error, it affects only one request which may succeed after user retry. So is there any special considerations here?

@ggtakec

Originally created by @rockuw on GitHub (Jun 24, 2016). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/437 ``` cpp //curl.cpp:2047 // Unknown CURL return code default: S3FS_PRN_CRIT("###curlCode: %d msg: %s", curlCode, curl_easy_strerror(curlCode)); exit(EXIT_FAILURE); break; ``` Even if we cannot handle the curl error, it affects only one request which may succeed after user retry. So is there any special considerations here? @ggtakec
kerem closed this issue 2026-03-04 01:43:33 +03:00
Author
Owner

@ggtakec commented on GitHub (Jun 26, 2016):

@rockuw
Special consideration have not been made about this older than 1.60.
This means s3fs is determined it can not recover and exits assap because s3fs can not be handled this error. (but s3fs should run post-processing.)

Regards,

<!-- gh-comment-id:228581876 --> @ggtakec commented on GitHub (Jun 26, 2016): @rockuw Special consideration have not been made about this older than 1.60. This means s3fs is determined it can not recover and exits assap because s3fs can not be handled this error. (but s3fs should run post-processing.) Regards,
Author
Owner

@rockuw commented on GitHub (Jun 27, 2016):

s3fs could handle it in this way: just return EIO when an unknown curl error is encountered. What do you think?

@ggtakec

<!-- gh-comment-id:228635415 --> @rockuw commented on GitHub (Jun 27, 2016): s3fs could handle it in this way: just return EIO when an unknown curl error is encountered. What do you think? @ggtakec
Author
Owner

@ggtakec commented on GitHub (Jun 27, 2016):

@rockuw That you said is correct.
I think that I also do not see the reason to exit in S3fsCurl class.
Correctly, this method returns an error of such EIO, the error should have been treated with the caller.

For now, the calling exit() in this function has been changed to returning EIO after I tested codes.
And I merged codes by #440.

Please check it and try it.

Regards,

<!-- gh-comment-id:228716283 --> @ggtakec commented on GitHub (Jun 27, 2016): @rockuw That you said is correct. I think that I also do not see the reason to exit in S3fsCurl class. Correctly, this method returns an error of such EIO, the error should have been treated with the caller. For now, the calling exit() in this function has been changed to returning EIO after I tested codes. And I merged codes by #440. Please check it and try it. Regards,
Author
Owner

@gaul commented on GitHub (Feb 2, 2019):

@rockuw did this change resolve your symptoms? If so please close this issue.

<!-- gh-comment-id:459933787 --> @gaul commented on GitHub (Feb 2, 2019): @rockuw did this change resolve your symptoms? If so please close this issue.
Author
Owner

@gaul commented on GitHub (Apr 9, 2019):

Closing due to inactivity. Please reopen if symptoms persist.

<!-- gh-comment-id:481187460 --> @gaul commented on GitHub (Apr 9, 2019): Closing due to inactivity. Please reopen if symptoms persist.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#237
No description provided.