summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-02-24 20:28:41 +0000
committerNick Mathewson <nickm@torproject.org>2007-02-24 20:28:41 +0000
commitaf57074f08162f5fa9d61bcce1ef42b30e7e8e55 (patch)
tree9bba5a230bc93afd8a499a7bc196c31dfc261edb
parentb4243d7dfae53923a28b5dd392685083867e899f (diff)
downloadtor-af57074f08162f5fa9d61bcce1ef42b30e7e8e55.tar.gz
tor-af57074f08162f5fa9d61bcce1ef42b30e7e8e55.zip
r11931@catbus: nickm | 2007-02-24 15:28:34 -0500
crank up the length of the maximum allowed control message. svn:r9644
-rw-r--r--ChangeLog2
-rw-r--r--src/or/control.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c9e8d80549..0033d006c6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -23,6 +23,8 @@ Changes in version 0.1.2.8-alpha - 2007-??-??
"INTERNAL".
- Change reported stream target addresses to IP consistently when
we finally get the IP from an exit node.
+ - Send log messages to the controller even if they happen to be very
+ long.
o Minor bugfixes (other):
- Display correct results when reporting which versions are
diff --git a/src/or/control.c b/src/or/control.c
index 766e2bce4b..bfe6281570 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -729,9 +729,10 @@ static void
send_control1_event_impl(uint16_t event, event_format_t which, int extended,
const char *format, va_list ap)
{
-#define SEND_CONTROL1_EVENT_BUFFERSIZE 1024
+ /* This is just a little longer than the longest allowed log message */
+#define SEND_CONTROL1_EVENT_BUFFERSIZE 10064
int r;
- char buf[SEND_CONTROL1_EVENT_BUFFERSIZE]; /* XXXX Length */
+ char buf[SEND_CONTROL1_EVENT_BUFFERSIZE];
size_t len;
char *cp;