y10k / rims

Ruby IMap Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Internal bulk response size may exceed over load_limit of DRb

y10k opened this issue · comments

Internal responses from engine to decoder are bulked to reduce DRb communication overhead.
Total size of the responses is not taken into account, and it may exceed over the DRb communication upper limit.
The FETCH command is particularly dangerous.

Any IMAP command in the selected state can return any untagged responses, potentially exceeding the DRb's load_limit, though I think it's almost impossible.
Every IMAP commands may be treated as a bulk response just in case.

It is a future task to make untagged responses internal bulked.