tor/src/or
David Goulet 981bb60575 circuit: Don't timeout opened C_INTRODUCING circuit
A circuit with purpose C_INTRODUCING means that its state is opened but the
INTRODUCE1 cell hasn't been sent yet. We shouldn't consider that circuit when
looking for timing out "building circuit". We have to wait on the rendezvous
circuit to be opened before sending that cell so the intro circuit needs to be
kept alive for at least that period of time.

This patch makes that the purpose C_INTRODUCING is ignored in the
circuit_expire_building() which means that we let the circuit idle timeout
take care of it if we end up never using it.

Fixes #23681

Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-11-20 08:33:44 -05:00
..
addressmap.c Fix parse_virtual_addr_network minimum network size 2016-10-03 12:18:51 +01:00
addressmap.h Update the copyright year. 2016-02-27 18:48:19 +01:00
buffers.c Fix GCC 7 -Wimplicit-fallthrough warnings 2017-09-11 17:47:04 -04:00
buffers.h Make preferred_chunk_size avoid overflow, handle big inputs better 2016-09-13 09:07:12 -04:00
channel.c Module docs for channel.c and channeltls.c 2016-10-18 10:53:12 -04:00
channel.h checkSpace.pl now forbids more identifiers. 2016-09-06 12:35:37 -04:00
channeltls.c Module docs for channel.c and channeltls.c 2016-10-18 10:53:12 -04:00
channeltls.h Add -Wmissing-variable-declarations, with attendant fixes 2016-06-11 10:11:54 -04:00
circpathbias.c Replace nearly all XXX0vv comments with smarter ones 2016-05-30 16:18:16 -04:00
circpathbias.h Update the copyright year. 2016-02-27 18:48:19 +01:00
circuitbuild.c Refactor circuit_pick_create_handshake 2016-10-31 17:01:33 +11:00
circuitbuild.h Client & HS ignore UseNTorHandshake, all non-HS handshakes use ntor 2016-08-24 11:02:00 +10:00
circuitlist.c Merge branch 'maint-0.2.8' into maint-0.2.9 2017-10-23 08:53:25 -04:00
circuitlist.h Fix memory leak in TestingEnableCellStatsEvent 2016-03-28 11:12:15 -04:00
circuitmux.c Turn circuitmux.c comments into module docs. 2016-10-18 11:17:34 -04:00
circuitmux.h Update the copyright year. 2016-02-27 18:48:19 +01:00
circuitmux_ewma.c Module documentation for circuitmux_ewma.c 2016-10-18 11:28:40 -04:00
circuitmux_ewma.h Add -Wmissing-variable-declarations, with attendant fixes 2016-06-11 10:11:54 -04:00
circuitstats.c Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
circuitstats.h Update the copyright year. 2016-02-27 18:48:19 +01:00
circuituse.c circuit: Don't timeout opened C_INTRODUCING circuit 2017-11-20 08:33:44 -05:00
circuituse.h Update the copyright year. 2016-02-27 18:48:19 +01:00
command.c Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
command.h Update the copyright year. 2016-02-27 18:48:19 +01:00
config.c Merge remote-tracking branch 'public/bug23693_029' into maint-0.2.9 2017-10-31 11:43:07 -04:00
config.h Merge remote-tracking branch 'public/spaces_in_unix_addrs' 2016-10-14 10:21:41 -04:00
confparse.c Log a warning when Testing options are deprecated. 2016-08-19 20:21:04 -04:00
confparse.h Log a warning when Testing options are deprecated. 2016-08-19 20:21:04 -04:00
connection.c Merge branch 'bug20716_026' into maint-0.2.9 2016-12-02 12:00:46 -05:00
connection.h Add connection_is_moribund() inline 2016-08-20 03:34:16 +00:00
connection_edge.c Fix GCC 7 -Wimplicit-fallthrough warnings 2017-09-11 17:47:04 -04:00
connection_edge.h Update the copyright year. 2016-02-27 18:48:19 +01:00
connection_or.c Merge branch 'maint-0.2.8' into maint-0.2.9 2017-06-27 11:04:44 -04:00
connection_or.h Unit test for pick_oos_victims() 2016-08-20 01:43:52 +00:00
control.c Fix crashes on empty +HSPOST and +POSTDESCRIPTOR commands 2017-09-07 09:20:00 -04:00
control.h Expose GETINFO download status statics for test suite and make things mockable 2016-06-29 05:55:42 +00:00
cpuworker.c Actually free the worker_state_t object when we do an update with it 2016-10-31 15:20:25 -04:00
cpuworker.h Update the copyright year. 2016-02-27 18:48:19 +01:00
dircollate.c Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
dircollate.h Merge branch 'maint-0.2.7' 2016-03-21 13:26:04 -04:00
directory.c Stop relays calling directory_fetches_from_authorities on dir downloads 2017-09-13 09:46:17 +10:00
directory.h Do not apply 'max_failures' to random-exponential schedules. 2016-11-06 20:08:11 -05:00
dirserv.c Mark descriptors as undownloadable when dirserv_add_() rejects them 2017-06-27 12:01:46 -04:00
dirserv.h Include protocol versions in votes. 2016-09-26 10:56:51 -07:00
dirvote.c Prevent int underflow in dirvote.c compare_vote_rs_. 2017-02-14 16:31:23 -05:00
dirvote.h Merge branch 'protover_v2_squashed' 2016-09-26 11:00:08 -07:00
dns.c Fix GCC 7 -Wimplicit-fallthrough warnings 2017-09-11 17:47:04 -04:00
dns.h DefecTor countermeasure: change server- and client-side DNS TTL clipping 2017-01-18 08:55:57 -05:00
dns_structs.h Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
dnsserv.c Merge branch 'maint-0.2.5' into maint-0.2.6 2017-02-07 10:37:53 -05:00
dnsserv.h Update the copyright year. 2016-02-27 18:48:19 +01:00
entrynodes.c Fix all -Wshadow warnings on Linux 2016-07-28 06:58:44 -04:00
entrynodes.h Expose GETINFO download status statics for test suite and make things mockable 2016-06-29 05:55:42 +00:00
ext_orport.c Module-level docs for ext_orport and router.c 2016-10-18 19:32:49 -04:00
ext_orport.h Update the copyright year. 2016-02-27 18:48:19 +01:00
fallback_dirs.inc Update fallback directory mirrors in May 2017 2017-05-16 19:02:42 +10:00
fp_pair.c Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
fp_pair.h Update the copyright year. 2016-02-27 18:48:19 +01:00
geoip.c Merge branch 'maint-0.2.4' into maint-0.2.5 2017-06-05 14:38:54 -04:00
geoip.h Update the copyright year. 2016-02-27 18:48:19 +01:00
hibernate.c Merge remote-tracking branch 'public/bug22245_024' into maint-0.2.9 2017-08-01 11:22:42 -04:00
hibernate.h Update the copyright year. 2016-02-27 18:48:19 +01:00
include.am Test for .git as readable instead of a dir to support worktrees 2016-12-05 08:21:17 -05:00
keypin.c Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
keypin.h Update the copyright year. 2016-02-27 18:48:19 +01:00
main.c Define HeapEnableTerminationOnCorruption if the headers don't. 2017-05-19 06:46:49 -04:00
main.h Merge branch 'maint-0.2.8' into maint-0.2.9 2016-11-03 15:44:46 -04:00
Makefile.nmake
microdesc.c Prevents negative number of written bytes on error message. 2016-08-16 17:12:18 +01:00
microdesc.h Add unit tests for networkstatus_consensus_is_bootstrapping 2016-05-19 07:58:41 -04:00
networkstatus.c Stop declining to download microdescs with future published times. 2017-03-06 15:37:01 -05:00
networkstatus.h prop264: sometimes check client _and_ server versions. 2016-09-26 10:56:53 -07:00
nodelist.c Clear the address when node_get_prim_orport() returns early 2017-10-15 16:48:36 -04:00
nodelist.h Update the copyright year. 2016-02-27 18:48:19 +01:00
ntmain.c Merge remote-tracking branch 'public/bug23081_025' into maint-0.2.9 2017-10-23 08:47:52 -04:00
ntmain.h Update the copyright year. 2016-02-27 18:48:19 +01:00
onion.c Merge remote-tracking branch 'public/bug20059_024_v2' into maint-0.2.9 2017-08-01 11:28:36 -04:00
onion.h Update the copyright year. 2016-02-27 18:48:19 +01:00
onion_fast.c Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
onion_fast.h Update the copyright year. 2016-02-27 18:48:19 +01:00
onion_ntor.c Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
onion_ntor.h Update the copyright year. 2016-02-27 18:48:19 +01:00
onion_tap.c Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
onion_tap.h Update the copyright year. 2016-02-27 18:48:19 +01:00
or.h Merge remote-tracking branch 'public/bug19769_19025_029' into maint-0.2.9 2017-08-01 11:30:29 -04:00
periodic.c Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
periodic.h Update the copyright year. 2016-02-27 18:48:19 +01:00
policies.c Fix policies.c instance of the "if (r=(a-b)) return r" pattern 2017-02-14 16:31:11 -05:00
policies.h Fix policies.c instance of the "if (r=(a-b)) return r" pattern 2017-02-14 16:31:11 -05:00
protover.c protover: Fix old tor hardcoded version check 2016-12-02 12:09:08 -05:00
protover.h Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
reasons.c Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
reasons.h Update the copyright year. 2016-02-27 18:48:19 +01:00
relay.c Merge branch 'bug8185_025' into maint-0.2.9 2017-11-13 11:15:47 -05:00
relay.h Update the copyright year. 2016-02-27 18:48:19 +01:00
rendcache.c Merge branch 'maint-0.2.6' into maint-0.2.7-redux 2017-02-07 09:59:12 -05:00
rendcache.h Add -Wmissing-variable-declarations, with attendant fixes 2016-06-11 10:11:54 -04:00
rendclient.c Merge branch 'feature-17178-v7-squashed-v2' 2016-09-13 10:20:08 -04:00
rendclient.h Implement Prop #260: Single Onion Services 2016-09-13 10:10:54 -04:00
rendcommon.c Merge branch 'maint-0.2.5' into maint-0.2.6 2016-12-20 18:11:25 -05:00
rendcommon.h Implement Prop #260: Single Onion Services 2016-09-13 10:10:54 -04:00
rendmid.c Stop being so strict about the payload length of "rendezvous1" cells 2016-05-09 20:34:27 -04:00
rendmid.h Update the copyright year. 2016-02-27 18:48:19 +01:00
rendservice.c Merge branch 'maint-0.2.8' into maint-0.2.9 2017-09-18 09:39:46 -04:00
rendservice.h Stop ignoring hidden service key anonymity when first starting tor 2016-12-01 09:44:53 -05:00
rephist.c Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
rephist.h Add -Wmissing-variable-declarations, with attendant fixes 2016-06-11 10:11:54 -04:00
replaycache.c Turn replaycache.c module doc into doxygen 2016-10-18 12:31:50 -04:00
replaycache.h Update the copyright year. 2016-02-27 18:48:19 +01:00
router.c Merge branch 'maint-0.2.8' into maint-0.2.9 2017-11-18 11:01:43 -05:00
router.h refactor router_pick_published_address to have another arg 2016-11-16 16:13:03 -05:00
routerkeys.c Fix spurious compiler warning in do_getpass(). 2016-10-11 09:34:08 -04:00
routerkeys.h Update the copyright year. 2016-02-27 18:48:19 +01:00
routerlist.c Fix policies.c instance of the "if (r=(a-b)) return r" pattern 2017-02-14 16:31:11 -05:00
routerlist.h Rename routerstatus_version_supports_ntor to *_supports_extend2_cells 2016-10-31 17:02:21 +11:00
routerparse.c Reject Tor versions that contain non-numeric prefixes 2017-02-19 22:38:06 +11:00
routerparse.h Extract the part of tor_version_as_new_as that extracts platform 2017-02-15 07:46:34 -05:00
routerset.c Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
routerset.h Update the copyright year. 2016-02-27 18:48:19 +01:00
scheduler.c Merge branch 'bug18902_squashed' 2016-07-28 06:59:03 -04:00
scheduler.h Add -Wmissing-variable-declarations, with attendant fixes 2016-06-11 10:11:54 -04:00
shared_random.c capture and detect expected BUG messages in shared-random tests 2016-09-08 15:13:53 -04:00
shared_random.h Merge remote-tracking branch 'dgoulet/bug19567_029_01' 2016-07-05 12:14:04 -04:00
shared_random_state.c Merge remote-tracking branch 'public/deprecation_v2' 2016-08-19 19:58:51 -04:00
shared_random_state.h Keep make check-spaces happy 2016-07-01 21:52:32 +00:00
statefile.c Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
statefile.h Update the copyright year. 2016-02-27 18:48:19 +01:00
status.c Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
status.h Update the copyright year. 2016-02-27 18:48:19 +01:00
tor_main.c Write a bunch of module documentation. 2016-10-17 10:16:59 -04:00
torcert.c Fix all doxygen warnings (other than missing docs) 2016-03-26 09:53:12 -04:00
torcert.h Update the copyright year. 2016-02-27 18:48:19 +01:00
transports.c refactor router_pick_published_address to have another arg 2016-11-16 16:13:03 -05:00
transports.h Update the copyright year. 2016-02-27 18:48:19 +01:00