mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-19 12:42:30 +02:00
performance improvements from 1.3.4
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// HTTPServerConnection.cpp
|
||||
//
|
||||
// $Id: //poco/svn/Net/src/HTTPServerConnection.cpp#2 $
|
||||
// $Id: //poco/Main/Net/src/HTTPServerConnection.cpp#11 $
|
||||
//
|
||||
// Library: Net
|
||||
// Package: HTTPServer
|
||||
@@ -43,6 +43,7 @@
|
||||
#include "Poco/Net/HTTPServerParams.h"
|
||||
#include "Poco/Net/NetException.h"
|
||||
#include "Poco/NumberFormatter.h"
|
||||
#include "Poco/Timestamp.h"
|
||||
#include <memory>
|
||||
|
||||
|
||||
@@ -79,6 +80,8 @@ void HTTPServerConnection::run()
|
||||
HTTPServerResponseImpl response(session);
|
||||
HTTPServerRequestImpl request(response, session, _pParams);
|
||||
|
||||
Poco::Timestamp now;
|
||||
response.setDate(now);
|
||||
response.setVersion(request.getVersion());
|
||||
response.setKeepAlive(_pParams->getKeepAlive() && request.getKeepAlive() && session.canKeepAlive());
|
||||
if (!server.empty())
|
||||
|
Reference in New Issue
Block a user