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

RdmaServerEndpoint accept may return null, if listening endpoint closes. #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BernardMetzler
Copy link
Member

Closing the RdmaServerEndpoint in a current accept() lets a poll of the private accepting endpoint queue return null. This patch just avoids dereferencing that null endpoint during accept(). The caller of RdmaServerEndpoint.accept() must handle that case appropriately.

if (endpoint != null) {
logger.info("connect request received");
endpoint.accept();
}
return endpoint;
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we sure applications are handling the case correctly if null is returned here? Might as well throw an exception (Much like before)?

@BernardMetzler
Copy link
Member Author

BernardMetzler commented Oct 5, 2020 via email

@PepperJo
Copy link
Contributor

PepperJo commented Oct 6, 2020 via email

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.

2 participants