Skip to content

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

Open
BernardMetzler wants to merge 1 commit into
zrlio:masterfrom
BernardMetzler:RdmaServerEpNullAccept
Open

RdmaServerEndpoint accept may return null, if listening endpoint closes.#54
BernardMetzler wants to merge 1 commit into
zrlio:masterfrom
BernardMetzler:RdmaServerEpNullAccept

Conversation

@BernardMetzler

Copy link
Copy Markdown

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

BernardMetzler commented Oct 5, 2020 via email

Copy link
Copy Markdown
Author

@PepperJo

PepperJo commented Oct 6, 2020 via email

Copy link
Copy Markdown
Contributor

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