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

imapserver: split command handling #554

Draft
wants to merge 1 commit into
base: v2
Choose a base branch
from
Draft

Conversation

emersion
Copy link
Owner

Split into two parts: parsing and processing. Some commands are incompatible with this model (e.g. APPEND), so will have a no-op second step.

The goal is to parallelize the second step with other processing: reading the next command, and eventually handling the next command as well.

Split into two parts: parsing and processing. Some commands are
incompatible with this model (e.g. APPEND), so will have a no-op
second step.

The goal is to parallelize the second step with other processing:
reading the next command, and eventually handling the next command
as well.
@emersion
Copy link
Owner Author

emersion commented Jan 26, 2024

The main use-case for command pipelining is avoiding to stall the connection when executing long-running commands (e.g. a large SEARCH command). For FETCH the client can split up commands into bite-sized pieces.

Maybe we should only implement this for SEARCH?

@emersion emersion mentioned this pull request Jan 26, 2024
20 tasks
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