Skip to content

Conversation

@BernardMetzler
Copy link

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.

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
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