Skip to content

sleep used without importing time.sleep in _wait_for_legacy_endpoint #3

Description

@Karthik777
def _wait_for_legacy_endpoint(self, timeout:float=5.0):
    if not isinstance(self.t, LegacySSETransport): return
    start = _now()
    while self.t._post_url is None and _now() - start < timeout: sleep(0.01)
    if self.t._post_url is None: raise MCPTransportError('Legacy SSE server did not send an endpoint event')

the sleep errors out with an import error

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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