Skip to content

Reconnectable hangs on iOS platform #150

Closed
@webfrea-k

Description

@webfrea-k

Reconnectable starts correctly, but then hangs on the delay() call.

Expected Behavior

It should stay in delay for as many milliseconds as specified and then continue

Actual Behavior

It never continues after delay()

Steps to Reproduce

Configure reconnectable and specify delay(1000) in it, then restart the server :)

reconnectable(5) {
    delay(1000)
    true
}

Possible Solution

I believe the problem is in the coroutine scope inside internal suspend fun ReconnectableRSocket().
For delay() to work on native-mt, coroutine should start from the main scope.

.stateIn(CoroutineScope(Dispatchers.Main + job))  // only for native platform

Your Environment

Latest

  • RSocket version(s) used: 1.12.0
  • Other relevant libraries versions (eg. netty, ...): /
  • Platform (eg. JVM version (javar -version) or Node version (node --version)): native
  • OS and version (eg uname -a): /

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions