#1872 Wisp keep-alive check bug

paul Sat 14 Apr 2012

In wisp::WispActor there is a check that makes response persistent.

// if using HTTP 1.1 and client specified using keep-alives,
// then setup response to be persistent for pipelining
if (req.version === ver11 && 
    req.headers.get("Connection", "").equalsIgnoreCase("keep-alive"))
{
  res.isPersistent = true
  res.headers["Connection"] = "keep-alive"
}

Mozilla Firefox 11 when attempting to create websocket sends header with:

Connection: keep-alive, Upgrade

So the check made in the code above won't work and won't make connection persistent.

brian Sat 14 Apr 2012

I pushed a fix

Login or Signup to reply.