Browse Source

bump up header length when the dirserv reads http commands

Nov 23 12:10:26.556 [warn] fetch_from_buf_http(): headerlen 1487 larger than 1023. Failing.
Nov 23 12:10:26.556 [warn] directory_handle_command(): input too large. Failing.


svn:r867
Roger Dingledine 20 years ago
parent
commit
2de4fc2b7f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/directory.c

+ 1 - 1
src/or/directory.c

@@ -149,7 +149,7 @@ int connection_dir_process_inbuf(connection_t *conn) {
 }
 
 static int directory_handle_command(connection_t *conn) {
-  char headers[1024];
+  char headers[2048];
   char body[50000]; /* XXX */
   size_t dlen;
   const char *cp;