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

Asynchronous client using rlp_03 provided methods #113 #117

Merged
merged 21 commits into from
Apr 8, 2024

Conversation

kortemik
Copy link
Member

@kortemik kortemik commented Apr 5, 2024

No description provided.

@kortemik
Copy link
Member Author

kortemik commented Apr 5, 2024

FIXME executorService.shutdown();
needs to be resolved

@kortemik kortemik mentioned this pull request Apr 7, 2024
Copy link
Contributor

@StrongestNumber9 StrongestNumber9 left a comment

Choose a reason for hiding this comment

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

Added some comments

connectionContext.handleEvent(selectionKey);
}
catch (CancelledKeyException cke) {
LOGGER.warn("SocketPoll.poll CancelledKeyException caught: {}", cke.getMessage());
Copy link
Contributor

Choose a reason for hiding this comment

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

<{}> format

selector.close();
}
catch (IOException ioException) {
LOGGER.warn("selector close threw", ioException);
Copy link
Contributor

Choose a reason for hiding this comment

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

Clean up a bit

}
catch (CancelledKeyException cke) {
// thrown by accessing cancelled SelectionKey
LOGGER.warn("SocketPoll.poll CancelledKeyException caught: {}", cke.getMessage());
Copy link
Contributor

Choose a reason for hiding this comment

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

<{}> format

int txn = txnCounter.incrementAndGet();
relpFrameTX.setTransactionNumber(txn);
if (transactions.containsKey(txn)) {
throw new IllegalStateException("already pending txn <" + txn + ">");
Copy link
Contributor

Choose a reason for hiding this comment

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

Cleanup this a bit, at least start with capital letter

Copy link
Contributor

@eemhu eemhu left a comment

Choose a reason for hiding this comment

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

LGTM

@kortemik kortemik merged commit 57cca98 into teragrep:main Apr 8, 2024
1 check passed
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.

3 participants