yahoo / imapnio

Java imap nio client that is designed to scale well for thousands of connections per machine and reduce contention when using large number of threads and cpus.
57 stars 50 forks source link

Fix NPE from client command. #69

Closed jui8wang closed 4 years ago

jui8wang commented 4 years ago

When calling execute() in ImapAsyncSessionImpl, client written command may throw runtime exception when calling its methods. Before this fix, we did not handle, that causes the execute() to throw runtime exception while future is still in the queue. This fix catches it and processes and cleans up the future queue if present.

Description

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

Checklist: