Skip to content

Refactor AsyncWrite implementation and enhance web crawler error handling#379

Open
Unmesh100 wants to merge 1 commit into
smol-rs:masterfrom
Unmesh100:master
Open

Refactor AsyncWrite implementation and enhance web crawler error handling#379
Unmesh100 wants to merge 1 commit into
smol-rs:masterfrom
Unmesh100:master

Conversation

@Unmesh100

Copy link
Copy Markdown
  • Updated the poll_flush method in SmolStream to correctly call poll_flush for both Plain and Tls variants.
  • Introduced a FetchGuard struct in web-crawler.rs to ensure that an empty string is sent if the fetch operation is dropped before completion, preventing potential deadlocks.
  • Improved error handling in the fetch function by ensuring the sender is notified of the fetch completion status.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant