Skip to content

Allow force disconnecting a client #1246

Closed
FooBarWidget opened this Issue Jul 21, 2014 · 0 comments

1 participant

@FooBarWidget
Phusion B.V. member

If a request is stuck, then there's currently no way to force disconnect it. As a result, any processes that were associated with the request will remain indefinitely at the "Shutting down..." state. There should be a way to force disconnect clients.

Here's the request state after killing all processes. Why does it not notice that the app is gone despite "appInput started = true"?

Version : 4.0.46
Date    : 2014-07-21 13:51:01 +0200
Instance: 4215
1 clients:
  Client 45:
    host                        = snip
    uri                         = /phusion/design-assets/repository/archive.zip?ref=master
    connected at                = 2014-07-17 19:25:07 (325554 sec ago)
    state                       = FORWARDING_BODY_TO_APP
    session pid                 = 20424 (/opt/production/snip/snip#default)
    session gupid               = 1658cc5-8enjHNItGvk
    session initiated           = true
    requestBodyIsBuffered       = false
    requestIsChunked            = false
    requestBodyLength           = 0
    requestBodyAlreadyRead      = 0
    responseContentLength       = -1
    responseBodyAlreadyRead     = 0
    clientInput                 = 0x7f0cbc030360 fd=45, state=LIVE, buffer(0)="", paused=1, socketPaused=1, nextTickInstalled=0, generation=2, error=0
    clientInput started         = false
    clientBodyBuffer started    = false
    clientBodyBuffer reachedEnd = false
    clientOutputPipe started    = true
    clientOutputPipe reachedEnd = false
    clientOutputWatcher active  = false
    appInput                    = 0x7f0cbc032430 fd=21, state=LIVE, buffer(0)="", paused=0, socketPaused=0, nextTickInstalled=0, generation=2, error=0
    appInput started            = true
    appInput reachedEnd         = false
    responseHeaderSeen          = false
    useUnionStation             = true
@FooBarWidget FooBarWidget added this to the 5.0.3 milestone Feb 19, 2015
@FooBarWidget FooBarWidget modified the milestone: 5.0.3, 5.0.4 Mar 7, 2015
@FooBarWidget FooBarWidget added a commit that referenced this issue Mar 18, 2015
@FooBarWidget FooBarWidget Add API endpoint for force disconnecting a client
Closes GH-1246.
8738c35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.