mirokuratczyk 3 лет назад
Родитель
Сommit
5fbe7d526e
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      psiphon/common/transforms/httpTransformer.go

+ 4 - 1
psiphon/common/transforms/httpTransformer.go

@@ -77,7 +77,10 @@ type HTTPTransformer struct {
 	// b is used to buffer the accumulated bytes of the current HTTP request
 	// b is used to buffer the accumulated bytes of the current HTTP request
 	// header until the entire header is received and written.
 	// header until the entire header is received and written.
 	b bytes.Buffer
 	b bytes.Buffer
-	// remain is the number of remaining HTTP request body bytes to read into b.
+	// remain is the number of remaining HTTP request bytes to write to the
+	// underlying net.Conn. Set to the value of Content-Length (HTTP request
+	// body bytes) plus the length of the transformed HTTP header once the
+	// current request header is received.
 	remain uint64
 	remain uint64
 
 
 	net.Conn
 	net.Conn