diff options
author | Pixel <Pixel> | 2001-11-28 22:03:53 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2001-11-28 22:03:53 +0000 |
commit | 0a7f6d0b5935f9794dda8935d37d4238bed3d611 (patch) | |
tree | 8c45e37dd1e95df0efa3414d33ca2e7f597872e2 /lib/HttpServ.cc | |
parent | 9f2ad93e4dd13446a9df2304f1f74c4272739bea (diff) |
Some changes...
Diffstat (limited to 'lib/HttpServ.cc')
-rw-r--r-- | lib/HttpServ.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/HttpServ.cc b/lib/HttpServ.cc index ccff319..14e48e1 100644 --- a/lib/HttpServ.cc +++ b/lib/HttpServ.cc @@ -419,13 +419,15 @@ HttpServ::HttpServ(Action * ap, int port, const String & nname) throw (GeneralEx cerr << "Mini HTTP-Server '" << name << "' ready and listening for port " << port << endl; } +HttpServ::~HttpServ(void) { + Listener.close(); +} + int HttpServ::Do() { try { - Task * r; - Socket s = Listener.Accept(); s.SetNonBlock(); - r = new ProcessRequest(p, s, name, localport); + new ProcessRequest(p, s, name, localport); } catch (GeneralException) { } |