]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Merge remote-tracking branch 'andrea/cmux_refactor_configurable_threshold'
authorNick Mathewson <nickm@torproject.org>
Fri, 28 Nov 2014 03:39:46 +0000 (22:39 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 28 Nov 2014 03:39:46 +0000 (22:39 -0500)
Conflicts:
src/or/or.h
src/test/Makefile.nmake

29 files changed:
1  2 
src/common/compat_libevent.c
src/common/compat_libevent.h
src/common/torlog.h
src/or/buffers.c
src/or/buffers.h
src/or/channel.c
src/or/channel.h
src/or/channeltls.c
src/or/channeltls.h
src/or/circuitbuild.c
src/or/circuitlist.c
src/or/circuitlist.h
src/or/circuitmux.c
src/or/circuitmux.h
src/or/circuitmux_ewma.c
src/or/config.c
src/or/config.h
src/or/connection.c
src/or/connection_or.c
src/or/connection_or.h
src/or/include.am
src/or/main.c
src/or/or.h
src/or/relay.c
src/or/relay.h
src/test/Makefile.nmake
src/test/include.am
src/test/test.c
src/test/test_circuitmux.c

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc src/or/config.c
Simple merge
diff --cc src/or/config.h
Simple merge
Simple merge
Simple merge
Simple merge
index 0f53f007f071d8e47f8de956d3340c65e8e8e7cc,b2b940614fbfc33dc14438f2cbb8fcff5ef69a7f..643f7ce001d938314618fb1e4b302a3d2a5e22c3
@@@ -74,11 -80,12 +74,12 @@@ LIBTOR_A_SOURCES = 
        src/or/routerlist.c                             \
        src/or/routerparse.c                            \
        src/or/routerset.c                              \
+       src/or/scheduler.c                              \
        src/or/statefile.c                              \
        src/or/status.c                                 \
 +      src/or/onion_ntor.c                             \
        $(evdns_source)                                 \
        $(tor_platform_source)                          \
 -      $(onion_ntor_source)                            \
        src/or/config_codedigest.c
  
  src_or_libtor_a_SOURCES = $(LIBTOR_A_SOURCES)
diff --cc src/or/main.c
Simple merge
diff --cc src/or/or.h
index bff7267d37ffa884bb3af0f89b7eee327ed5ff57,25df54a6694a064ab934307e5f0d1a433ac72eab..ccb29ee7dfda64e515f83c4fac7050fccfd49ddc
@@@ -4230,6 -4227,21 +4248,18 @@@ typedef struct 
    /** How long (seconds) do we keep a guard before picking a new one? */
    int GuardLifetime;
  
 -  /** Should we send the timestamps that pre-023 hidden services want? */
 -  int Support022HiddenServices;
 -
+   /** Low-water mark for global scheduler - start sending when estimated
+    * queued size falls below this threshold.
+    */
+   uint32_t SchedulerLowWaterMark;
+   /** High-water mark for global scheduler - stop sending when estimated
+    * queued size exceeds this threshold.
+    */
+   uint32_t SchedulerHighWaterMark;
+   /** Flush size for global scheduler - flush this many cells at a time
+    * when sending.
+    */
+   unsigned int SchedulerMaxFlushCells;
  } or_options_t;
  
  /** Persistent state for an onion router, as saved to disk. */
diff --cc src/or/relay.c
Simple merge
diff --cc src/or/relay.h
Simple merge
index f6ee7f3f5356ff7ee40b67d7e9f2cf052892c5dd,e2cf53895f6167afab0f7fba286cb061ab9f7f0c..043561768322770db9b5e1a39e0538a647436c8a
@@@ -11,11 -11,11 +11,12 @@@ LIBS = ..\..\..\build-alpha\lib\libeven
   ws2_32.lib advapi32.lib shell32.lib \
   crypt32.lib gdi32.lib user32.lib
  
- TEST_OBJECTS = test.obj test_addr.obj test_containers.obj \
+ TEST_OBJECTS = test.obj test_addr.obj test_channel.obj test_channeltls.obj \
 -      test_containers.obj test_controller_events.obj test_crypto.obj \
 -      test_data.obj test_dir.obj test_microdesc.obj test_pt.obj test_util.obj \
 -      test_config.obj test_cell_formats.obj test_relay.obj test_replay.obj \
++        test_containers.obj \
 +      test_controller_events.obj test_crypto.obj test_data.obj test_dir.obj \
 +      test_checkdir.obj test_microdesc.obj test_pt.obj test_util.obj test_config.obj \
-       test_cell_formats.obj test_replay.obj test_introduce.obj tinytest.obj \
-       test_hs.obj
++      test_cell_formats.obj test_relay.obj test_replay.obj \
+       test_scheduler.obj test_introduce.obj test_hs.obj tinytest.obj
  
  tinytest.obj: ..\ext\tinytest.c
        $(CC) $(CFLAGS) /D snprintf=_snprintf /c ..\ext\tinytest.c
Simple merge
diff --cc src/test/test.c
Simple merge
Simple merge