Skip to content

Conversation

@epoberezkin
Copy link
Member

No description provided.

@epoberezkin epoberezkin force-pushed the ep/service-create-user branch from 8068b8d to 5444e05 Compare December 26, 2025 22:22
reqTimeout `timeout` ((Right <$> sendReq req process) `E.catches` httpClientHandlers) >>= \case
Just (Right r) -> pure $ Right r
Just (Left (e :: E.SomeException)) -> disconnected $> Left (HCIOError $ E.displayException e)
Just (Left e) -> disconnected $> Left e
Copy link
Member Author

Choose a reason for hiding this comment

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

Catching SomeException that previously replaced IOException results in undesirable catching of async exceptions.

We need to review all catch, try etc. from Control.Exceptions and use safe alternatives that don't catch async exceptions. catchAllErrors etc. are already safe as they use UnliftIO.

@epoberezkin epoberezkin merged commit db4b27e into rcv-services Dec 27, 2025
5 of 6 checks passed
@epoberezkin epoberezkin deleted the ep/service-create-user branch December 27, 2025 09:12
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.

1 participant