Project

General

Profile

Actions

Bug #21621

closed

async_msgr: bind must be called before registering any dispatcher

Added by Ricardo Dias over 6 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
msgr
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

While building a small client/server example using the Ceph messenger classes, I found that if I register a dispatcher before calling the "Messenger::bind" method on the messenger, the messenger will start the connection processor before having a server socket initialized and will not process any incoming connections on the server socket that is later initialized in the "Messenger::bind" method.

I think this is a weird behavior because I think the most intuitive behavior would be for the programmer to add the dispatchers before binding the messenger to an address.

Is there a good reason for the current behavior? or is this a bug?

Actions

Also available in: Atom PDF