Skip to content

Using Session.shutdown inside airframe-http endpoint causes deadlock #693

@xerial

Description

@xerial

This code can cause a deadlock:

@EndPoint(path="/shutdown")
def shutdown : Unit = {  
   session.shutdown   // Blocks because the server cannot be stopped until this returns some response
}

Possible solutions:

  • Run session.shutdown in a background thread
  • Force terminating FinagleServer

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions