Merge branch 'maint-0.2.2' into release-0.2.2
This commit is contained in:
commit
da068c9166
|
@ -0,0 +1,5 @@
|
|||
o Major bugfix:
|
||||
- Do not process cells on a marked-for-close connection. We previously
|
||||
avoided this by not calling read handlers on marked connections, but
|
||||
that's not adequate for the case when cells are very small. Fixes
|
||||
bug 4299; bugfix on 0.2.0.20-rc which first made small cells possible.
|
|
@ -0,0 +1,4 @@
|
|||
o Trivial fixes:
|
||||
- Fixed a typo in a hibernation-related log message. Fixes bug 4331;
|
||||
bugfix on 0.2.2.23-alpha; found by "tmpname0901".
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
o Major bugfixes:
|
||||
- Don't crash when we're running as a relay and don't have a geoip
|
||||
file. Bugfix on tor-0.2.2.34; fixes bug 4340. This backports a fix
|
||||
we've had in master already.
|
||||
|
|
@ -132,6 +132,9 @@ command_process_cell(cell_t *cell, or_connection_t *conn)
|
|||
#define PROCESS_CELL(tp, cl, cn) command_process_ ## tp ## _cell(cl, cn)
|
||||
#endif
|
||||
|
||||
if (conn->_base.marked_for_close)
|
||||
return;
|
||||
|
||||
/* Reject all but VERSIONS and NETINFO when handshaking. */
|
||||
if (handshaking && cell->command != CELL_VERSIONS &&
|
||||
cell->command != CELL_NETINFO)
|
||||
|
@ -205,6 +208,9 @@ command_process_var_cell(var_cell_t *cell, or_connection_t *conn)
|
|||
}
|
||||
#endif
|
||||
|
||||
if (conn->_base.marked_for_close)
|
||||
return;
|
||||
|
||||
/* reject all when not handshaking. */
|
||||
if (conn->_base.state != OR_CONN_STATE_OR_HANDSHAKING)
|
||||
return;
|
||||
|
|
|
@ -1425,6 +1425,7 @@ options_act(or_options_t *old_options)
|
|||
geoip_dirreq_stats_init(now);
|
||||
print_notice = 1;
|
||||
} else {
|
||||
options->DirReqStatistics = 0;
|
||||
log_notice(LD_CONFIG, "Configured to measure directory request "
|
||||
"statistics, but no GeoIP database found! "
|
||||
"Please specify a GeoIP database using the "
|
||||
|
@ -1437,6 +1438,7 @@ options_act(or_options_t *old_options)
|
|||
geoip_entry_stats_init(now);
|
||||
print_notice = 1;
|
||||
} else {
|
||||
options->EntryStatistics = 0;
|
||||
log_notice(LD_CONFIG, "Configured to measure entry node "
|
||||
"statistics, but no GeoIP database found! "
|
||||
"Please specify a GeoIP database using the "
|
||||
|
|
|
@ -943,7 +943,7 @@ consider_hibernation(time_t now)
|
|||
if (hibernate_soft_limit_reached()) {
|
||||
log_notice(LD_ACCT,
|
||||
"Bandwidth soft limit reached; commencing hibernation. "
|
||||
"No new conncetions will be accepted");
|
||||
"No new connections will be accepted");
|
||||
hibernate_begin(HIBERNATE_STATE_LOWBANDWIDTH, now);
|
||||
} else if (accounting_enabled && now < interval_wakeup_time) {
|
||||
format_local_iso_time(buf,interval_wakeup_time);
|
||||
|
|
Loading…
Reference in New Issue