mirror of https://github.com/nodejs/node.git
Bug: Add HTTPConnection->size() and HTTPServer->size()
Need this for proper garbage collection.v0.7.4-release
parent
ec5f3dbae1
commit
25d14bd001
|
@ -14,6 +14,8 @@ public:
|
|||
static v8::Persistent<v8::FunctionTemplate> client_constructor_template;
|
||||
static v8::Persistent<v8::FunctionTemplate> server_constructor_template;
|
||||
|
||||
virtual size_t size (void) { return sizeof(HTTPConnection); };
|
||||
|
||||
protected:
|
||||
static v8::Handle<v8::Value> NewClient (const v8::Arguments& args);
|
||||
static v8::Handle<v8::Value> NewServer (const v8::Arguments& args);
|
||||
|
@ -41,6 +43,8 @@ public:
|
|||
static void Initialize (v8::Handle<v8::Object> target);
|
||||
static v8::Persistent<v8::FunctionTemplate> constructor_template;
|
||||
|
||||
virtual size_t size (void) { return sizeof(HTTPServer); };
|
||||
|
||||
protected:
|
||||
static v8::Handle<v8::Value> New (const v8::Arguments& args);
|
||||
|
||||
|
|
Loading…
Reference in New Issue