From 25d14bd0015b995913bfb5b9590ff5f0c9be09c1 Mon Sep 17 00:00:00 2001 From: Ryan Date: Sat, 20 Jun 2009 15:17:54 +0200 Subject: [PATCH] Bug: Add HTTPConnection->size() and HTTPServer->size() Need this for proper garbage collection. --- src/http.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/http.h b/src/http.h index ab207a3c59..eb7ecd774a 100644 --- a/src/http.h +++ b/src/http.h @@ -13,6 +13,8 @@ public: static v8::Persistent client_constructor_template; static v8::Persistent server_constructor_template; + + virtual size_t size (void) { return sizeof(HTTPConnection); }; protected: static v8::Handle NewClient (const v8::Arguments& args); @@ -41,6 +43,8 @@ public: static void Initialize (v8::Handle target); static v8::Persistent constructor_template; + virtual size_t size (void) { return sizeof(HTTPServer); }; + protected: static v8::Handle New (const v8::Arguments& args);