Rod Hynes před 9 roky
rodič
revize
df956e79e9
2 změnil soubory, kde provedl 3 přidání a 4 odebrání
  1. 3 0
      psiphon/server/api.go
  2. 0 4
      psiphon/server/meek.go

+ 3 - 0
psiphon/server/api.go

@@ -194,6 +194,9 @@ var statusRequestParams = append(
 // statusAPIRequestHandler implements the "status" API request.
 // Clients make periodic status requests which deliver client-side
 // recorded data transfer and tunnel duration stats.
+// Note from psi_web implementation: no input validation on domains;
+// any string is accepted (regex transform may result in arbitrary
+// string). Stats processor must handle this input with care.
 func statusAPIRequestHandler(
 	config *Config, geoIPData GeoIPData, params requestJSONObject) ([]byte, error) {
 

+ 0 - 4
psiphon/server/meek.go

@@ -55,10 +55,6 @@ const MEEK_PROTOCOL_VERSION_1 = 1
 // session ID on all subsequent requests for the remainder of the session.
 const MEEK_PROTOCOL_VERSION_2 = 2
 
-// TODO: protocol version 3, to support rapid shutdown of meek connections. Currently, there's no
-// signal from the clients that the payload within meek is EOF and that a given request is the
-// last request for a session; instead, session expiry is always what closes a session.
-
 const MEEK_MAX_PAYLOAD_LENGTH = 0x10000
 const MEEK_TURN_AROUND_TIMEOUT = 20 * time.Millisecond
 const MEEK_EXTENDED_TURN_AROUND_TIMEOUT = 100 * time.Millisecond