if(cl.async)
{
cl.sock->write(resp.str());
- cl.sock->close();
cl.stale = true;
}
}
if(response)
{
cl.sock->write(response->str());
- cl.sock->close();
cl.stale = true;
}
}
if(i->response==&resp)
return *i;
- throw InvalidParameterValue("Response does not belong to any client");
+ // XXX Do this differently
+ throw invalid_argument("Response does not belong to any client");
}