aboutsummaryrefslogtreecommitdiffhomepage
path: root/env_universal_common.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-02-16 01:28:46 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-02-16 01:28:46 -0800
commitdc54ec5b2b4391791b4b7f3471b6031c492d26f1 (patch)
tree6b164d9fdb78ecdf970213896478cf3072fab576 /env_universal_common.h
parentb682c4102e31257f96094617275d451c1b0de855 (diff)
Migrate connection_t from storing a huge buffer to a std::vector
Diffstat (limited to 'env_universal_common.h')
-rw-r--r--env_universal_common.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/env_universal_common.h b/env_universal_common.h
index 294c0e0b..30361f59 100644
--- a/env_universal_common.h
+++ b/env_universal_common.h
@@ -107,17 +107,12 @@ class connection_t
/**
The read buffer.
*/
- char buffer[ENV_UNIVERSAL_BUFFER_SIZE];
+ std::vector<char> read_buffer;
/**
Number of bytes that have already been consumed.
*/
size_t buffer_consumed;
-
- /**
- Number of bytes that have been read into the buffer.
- */
- size_t buffer_used;
/* Constructor */
connection_t(int input_fd);