summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/HttpServer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/HttpServer.cc b/src/HttpServer.cc
index dbc9b92..ef7e5bc 100644
--- a/src/HttpServer.cc
+++ b/src/HttpServer.cc
@@ -13,7 +13,7 @@ typedef std::map<String, String> StringMap;
class HttpWorker : public Task {
public:
- HttpWorker(IO<Socket> & io, void * server);
+ HttpWorker(IO<Handle> io, void * server);
~HttpWorker();
private:
virtual void Do();
@@ -31,7 +31,7 @@ class HttpWorker : public Task {
};
-Balau::HttpWorker::HttpWorker(IO<Socket> & io, void * _server) : m_socket(io), m_strm(new BStream(io)) {
+Balau::HttpWorker::HttpWorker(IO<Handle> io, void * _server) : m_socket(new WriteOnly(io)), m_strm(new BStream(io)) {
HttpServer * server = (HttpServer *) _server;
m_name.set("HttpWorker(%s)", m_socket->getName());
// copy stuff from server, such as port number, root document, base URL, etc...