mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
Snowflake proxy successfully reset and bootstrap a new client (#15)
This commit is contained in:
parent
133f657928
commit
77fbfe0e66
4 changed files with 33 additions and 25 deletions
|
@ -171,7 +171,9 @@ func proxyHandler(w http.ResponseWriter, r *http.Request) {
|
|||
w.Write(offer)
|
||||
|
||||
case <-time.After(time.Second * 10):
|
||||
// This snowflake is no longer available to serve clients.
|
||||
heap.Remove(snowflakes, snowflake.index)
|
||||
delete(snowflakeMap, snowflake.id)
|
||||
w.WriteHeader(http.StatusGatewayTimeout)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue