gsathya / htpt

HTTP Tor Pluggable Transport
Other
4 stars 3 forks source link

Flush buffers on receiving a pull request, even if buffers are not full #22

Open shahifaqeer opened 10 years ago

shahifaqeer commented 10 years ago

we only flush buffers when (previous buffer) + data > BUFFER_SIZE. This condition also sets the 'more_data' flag for header encoding. But when the client receives a packet with 'more_data' set, they will issue a pull request. The server should flush out the buffers even if they are not full on getting such a request.

shahifaqeer commented 10 years ago

Also implement recvData function, which I removed from framer.py