Opened 8 years ago

Last modified 2 years ago

#4816 new enhancement

Request: add count to "[warn] Your computer is too slow..."

Reported by: tmpname0901 Owned by:
Priority: Low Milestone: Tor: unspecified
Component: Core Tor/Tor Version:
Severity: Minor Keywords: tor-relay easy logging
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


Seen with Tor v0.2.2.35:

"[warn] Your computer is too slow to handle this many circuit creation requests! Please consider using the MaxAdvertisedBandwidth config option or choosing a more restricted exit policy."

It would be helpful if the number of connections that occasion this warning be stated in the message. I suggest replacing the text "this many" with an actual number.


Child Tickets

Change History (7)

comment:1 Changed 8 years ago by nickm

Milestone: Tor: 0.2.2.x-finalTor: unspecified

Hm. That message is already rate-limited so it can't occur more than once a minute, and so that it tells you how many circuit creation requests got dropped in the last minute. I guess that in order to be more useful, it should say something more like,

In the last X seconds I queued Y requests, and dropped Z

Or even better,

I have been answering X% requests within (some reasonable #) seconds; I've timed out on Y% and rejected Z% because my queue was too full.

comment:2 Changed 8 years ago by nickm

Keywords: tor-relay added

comment:3 Changed 8 years ago by nickm

Component: Tor RelayTor

comment:4 Changed 3 years ago by nickm

Keywords: easy logging added
Priority: MediumLow
Severity: Minor

comment:5 Changed 2 years ago by aruna1234

Could you be a bit more precise from where can I find the corresponding file to make the changes to

comment:6 Changed 2 years ago by aruna1234

I am sure there might be a function returning the number of circuit creation requests. Using that we can display the required message. Can you be a bit more specific of the file where the change is to be made.

comment:7 Changed 2 years ago by aruna1234

Can it be done using circuit_add_to_origin_circuit_list() which is called at the time of creating circuits. Or can we use circuit_get_cpath_len() to get the number of hops in circuit's path, but I don't think it's relevant as the issue here is about circuit creation request.
There must be some function returning the number of circuit creation request. I am not sure which one though.
Can someone help me on that?

Note: See TracTickets for help on using tickets.