GoogleChromeLabs / simplehttp2server

A simple HTTP/2 server for development
Other
1.74k stars 99 forks source link

Warning Printed to Console when Media Download Finishes #19

Closed jpmedley closed 7 years ago

jpmedley commented 7 years ago

This code causes the messages below to print to the console when it finishes downloading.

disconnecting; error reading frame from client [::1]:50784: read tcp [::1]:5000->[::1]:50784: i/o timeout
disconnecting; error reading frame from client [::1]:50787: read tcp [::1]:5000->[::1]:50787: i/o timeout
surma commented 7 years ago

This is fixed in 3.0 :) Before I was gzip’ing media files and because of the lack of Content-Length header the connection got closed by the browser ungracefully. The new version only gzip’s text-based file formats.