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

Bugfix: connection creation timeout #692

Merged

Conversation

Yannic92
Copy link
Contributor

There was an issue where sometimes the creation of a connection entity failed with a timeout just because the establishing of the actual connection took too much time.
This PR reorders the actions that are performed when creating a connection, so a successful response will be sent as soon as the connection could be created.
The establishing of the actual connection happens after this and is not part of the success response.

Yannic92 and others added 6 commits May 11, 2020 12:29
* Sending response before trying to connect
* This way the response is faster delivered and the probability of a timeout
  is reduced.

Signed-off-by: Yannic Klem <yannic.klem@bosch.io>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch.io>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch.io>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch.io>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch.io>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch.io>
@thjaeckle thjaeckle modified the milestones: 1.1.2, 1.2.0 Jun 15, 2020
connection

* Since in this special case it is possible that the EnableConnectionLogs
  command is emitted a second time by the UPDATE_SUBSCRIPTIONS step.

Signed-off-by: Yannic Klem <yannic.klem@bosch.io>
Signed-off-by: Yannic Klem <yannic.klem@bosch.io>
* Since we get the created response before the connection is established,
  we won't get notified anymore when the connection is established. As
  workaround we wait for any subscriptions which happen in the UPDATE_SUBSCRIPTIONS
  action of ConnectionPersistenceActor

Signed-off-by: Yannic Klem <yannic.klem@bosch.io>
Copy link
Contributor

@dguggemos dguggemos left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@dguggemos dguggemos merged commit 1d65dbc into eclipse-ditto:master Jun 17, 2020
@dguggemos dguggemos deleted the bugfix/connection-creation-timeout branch June 17, 2020 07:31
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.

None yet

3 participants