[tor-bugs] #6668 [Tor Client]: Tor configured as transparent proxy buffers hundreds of MB from client connections.

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Thu Aug 23 17:41:10 UTC 2012


#6668: Tor configured as transparent proxy buffers hundreds of MB from client
connections.
-------------------------+--------------------------------------------------
 Reporter:  cypherpunks  |          Owner:                  
     Type:  defect       |         Status:  new             
 Priority:  normal       |      Milestone:                  
Component:  Tor Client   |        Version:  Tor: 0.2.3.20-rc
 Keywords:               |         Parent:                  
   Points:               |   Actualpoints:                  
-------------------------+--------------------------------------------------
 Hello, I have Tor running in one VM (not very much RAM), client programs
 in another VM. Tor is configured as transparent proxy. When I browse the
 WWW or download something everything works fine, but when I try to upload
 a large file via HTTP (didn't try other protocols), Tor reads huge amounts
 of data from the client in a few seconds and obviously stores it in memory
 (ps indicates it uses several hundred MB, which is bad because the VM
 doesn't have much RAM). That is the first bug. Tor probably needs a
 buffer, but not so large, maybe 64k or something like that.

 The second bug is that when the client terminates (interrupts) the
 transfer, Tor keeps sending what is in the buffer. No way for the client
 to stop it. Tor should notice that the connection on the client side is
 finished and end the corresponding stream to the Tor network. Actually
 this may not be a bug on its own but it aggravates the problem of the
 first bug, because when I start and cancel uploads the network connection
 is clogged and I can only restart the Tor process. But of course if the
 upload terminates normally and Tor has only 64kB buffer, it should not
 terminate before it has sent the buffered data. I hope you understand what
 I mean. :-)

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/6668>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list