tor hangs for 30 seconds when parsing torrc ending in backslash-newline

When parsing torrc files that end in backslash then newline, tor hangs for approximately 30 seconds.

Examples:

ORPort \
HTTPProxy \

I have confirmed this issue in tor 0.2.6.8 and tor 0.2.7.1-alpha.

Note:

  • the eventual result is still a failed parse, which is correct
  • the issue is of delay/annoyance value at best
  • triggering the issue requires access to torrc