palaniyappanBala / andblock

Automatically exported from code.google.com/p/andblock
0 stars 0 forks source link

hanging socket #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. connect browser (ff on pc/webkit on device) to m.hvv.de
2. surf to search
3. fill in form
4. press "search"
5. socket hangs

this is not reproducable with netcat and sniffed traffic

What is the expected output? What do you see instead?
traffic should be send through proxy to m.hvv.de

Original issue reported on code.google.com by felix.bechstein on 12 Oct 2009 at 4:47

GoogleCodeExporter commented 9 years ago
reader.readLine() in readHeader() hangs after reading:

"POST http://mobil.hvv.de/mobile/smartSearch.seam HTTP/1.1
Host: mobil.hvv.de
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3) Gecko/20091003
Gentoo Firefox/3.5.3
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: de,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: UTF-8,*
Keep-Alive: 300
Proxy-Connection: keep-alive
Referer: http://mobil.hvv.de/mobile/smartSearch.seam?language=de&clear=true
Cookie: JSESSIONID=2DE1CF193F42C82BAEEC1A3541E966B9.tomcat2
Content-Type: application/x-www-form-urlencoded
Content-Length: 474

"

Original comment by felix.bechstein on 12 Oct 2009 at 5:11

GoogleCodeExporter commented 9 years ago
it hangs, because data is send without \r\n, readline will wait for it.

Original comment by felix.bechstein on 12 Oct 2009 at 5:21

GoogleCodeExporter commented 9 years ago
fixed but slow fix

Original comment by felix.bechstein on 13 Oct 2009 at 6:02