GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

relay: Send back CONNECTION_REFUSED on reentry

The TORPROTOCOL reason causes the client to close the circuit which is not
what we want because other valid streams might be on it.

Instead, CONNECTION_REFUSED will leave it open but will not allow more streams
to be attached to it. The client then open a new circuit to the destination.

Closes #40270

Signed-off-by: David Goulet <dgoulet@torproject.org>
9 jobs for ticket40270_045_01 in 16 minutes and 51 seconds
latest
Status Job ID Name Coverage
  Test
passed #10342
debian-disable-dirauth

00:05:49

passed #10343
debian-disable-relay

00:06:11

passed #10338
debian-distcheck

00:07:32

passed #10339
debian-docs

00:02:50

failed #10337
debian-hardened

00:08:00

passed #10340
debian-integration

00:15:51

passed #10336
debian-minimal

00:06:16

passed #10344
debian-nss

00:05:55

passed #10341
debian-tracing

00:08:21

 
Name Stage Failure
failed
debian-hardened Test
==20542==HINT: For debugging, try setting environment variable LSAN_OPTIONS=verbosity=1:log_threads=1
==20542==HINT: LeakSanitizer does not work under ptrace (strace, gdb, etc)
FAIL src/test/test_bt.sh (exit status: 1)

Uploading artifacts for failed job
Uploading artifacts...
artifacts/: found 2 matching files and directories

Uploading artifacts as "archive" to coordinator... ok
id=10337 responseStatus=201 Created token=hSQiL6Ts
ERROR: Job failed: exit code 1