Fix an object lifetime bug in net load tests
The commands handler must not be destroyed before the config object, or we'll be accessing freed memory. An earlier attempt at using boost::shared_ptr to control object lifetime turned out to be very invasive, though would be a better solution in theory.
This commit is contained in:
@@ -87,6 +87,7 @@ namespace levin
|
||||
virtual void on_connection_new(t_connection_context& context){};
|
||||
virtual void on_connection_close(t_connection_context& context){};
|
||||
|
||||
virtual ~levin_commands_handler(){}
|
||||
};
|
||||
|
||||
#define LEVIN_OK 0
|
||||
|
||||
Reference in New Issue
Block a user