Skip to content

[spray-client] HttpConduit close leaves connections open and throws exception in MainActor when stopped #1

Description

@alexdoth

If the Http session is closed in HttpConduit, the mainActor will be stopped, but the outstanding futures waiting to be completed still have a reference to the stopped actor. When the futures complete an exception is raised in the actor thread, and printed to standard error.

val conduit = new HttpConduit("github.com")
conduit.sendReceive(HttpRequest())
conduit.close() 
// Prints akka.actor not started error to standard error

The test case is in HttpConduitSpec:handleClose

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions