Opened 7 years ago

Closed 7 years ago

#8295 closed defect (invalid)

Stop reading connection when marking it for close

Reported by: cypherpunks Owned by:
Priority: Medium Milestone: Tor: 0.2.4.x-final
Component: Core Tor/Tor Version:
Severity: Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

connection_handle_read_impl() can't handle marked for close connection. No purpose to eat CPU cycles to call conn_read_callback() if no data will read. _connection_mark_for_close() should to call connection_stop_reading()

Child Tickets

Change History (1)

comment:1 Changed 7 years ago by cypherpunks

Keywords: easy removed
Resolution: invalid
Status: newclosed

_connection_mark_for_close() should to call connection_stop_reading()

If no calls of conn_read_callback() then no connection freed.

Note: See TracTickets for help on using tickets.