Closed GoogleCodeExporter closed 8 years ago
Will look at it.
Original comment by supp.san...@gmail.com
on 29 Jan 2014 at 7:41
Yes, something force close redirection. Will try to figure out.
Problem could be with this weird connection close header. X-Cnection: close
Maybe SandroProxy should always close connection if 301, 302 code happens.
HTTP/1.1 keepAlive: null reuseCount:1
Finished writing the response to the com.android.browser <10004>
Writing the response to the com.android.browser <10004>
http://espn.com:80/ : 301 Moved Permanently
Response:
301 Moved Permanently
Date: Thu, 30 Jan 2014 09:54:03 GMT
Server: Apache
Location: http://m.espn.go.com/wireless/index?i=COM
Content-Length: 249
*X-Cnection: close*
Content-Type: text/html; charset=iso-8859-1
Finished writing the response to the com.android.browser <10004>
Writing the response to the com.android.browser <10004>
IOException retrieving the response for
http://m.espn.go.com:80/wireless/index?w=1doxn&i=COM : java.io.IOException: No
data received from the server
Reading the response
Request :
GET http://m.espn.go.com:80/wireless/index?w=1doxn&i=COM HTTP/1.1
Host: m.espn.go.com
Connection: keep-alive
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
X-Requested-With: com.android.browser
User-Agent: Mozilla/5.0 (Linux; U; Android 4.2.2; en-us; HTC Vision
Build/JDQ39; CyanogenMod-10.1) AppleWebKit/534.30 (KHTML, like Gecko)
Version/4.0 Mobile Safari/534.30
Accept-Encoding: gzip,deflate
Accept-Language: en-US
Accept-Charset: utf-8, iso-8859-1, utf-16, *;q=0.7
Cookie: optimizelySegments=
Existing socket is valid, reusing it!
com.android.browser requested : GET
http://m.espn.go.com:80/wireless/index?w=1doxn&i=COM
Reading request from the com.android.browser <10004>
Version: HTTP/1.1 keepAlive: Keep-Alive reuseCount:1
Finished writing the response to the com.android.browser <10004>
Writing the response to the com.android.browser <10004>
http://m.espn.go.com:80/wireless/index?i=COM : 302 Moved Temporarily
Response:
302 Moved Temporarily
Connection: Keep-Alive
Location: http://m.espn.go.com/wireless/index?w=1doxn&i=COM
Server: barista/3.3.6
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 20
Reading the response
Request :
GET http://m.espn.go.com:80/wireless/index?i=COM HTTP/1.1
Host: m.espn.go.com
Connection: keep-alive
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
X-Requested-With: com.android.browser
User-Agent: Mozilla/5.0 (Linux; U; Android 4.2.2; en-us; HTC Vision
Build/JDQ39; CyanogenMod-10.1) AppleWebKit/534.30 (KHTML, like Gecko)
Version/4.0 Mobile Safari/534.30
Accept-Encoding: gzip,deflate
Accept-Language: en-US
Accept-Charset: utf-8, iso-8859-1, utf-16, *;q=0.7
Cookie: optimizelySegments=
Connect to m.espn.go.com:80
Opening a new connection
com.android.browser requested : GET http://m.espn.go.com:80/wireless/index?i=COM
Reading request from the com.android.browser <10004>
Version: HTTP/1.1 keepAlive: null reuseCount:1
Finished writing the response to the com.android.browser <10004>
Writing the response to the com.android.browser <10004>
http://espn.com:80/ : 301 Moved Permanently
Response:
301 Moved Permanently
Date: Thu, 30 Jan 2014 09:54:03 GMT
Server: Apache
Location: http://m.espn.go.com/wireless/index?i=COM
Content-Length: 249
X-Cnection: close
Content-Type: text/html; charset=iso-8859-1
Reading the response
Request :
GET http://espn.com:80/ HTTP/1.1
Host: espn.com
Connection: keep-alive
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
X-Requested-With: com.android.browser
User-Agent: Mozilla/5.0 (Linux; U; Android 4.2.2; en-us; HTC Vision
Build/JDQ39; CyanogenMod-10.1) AppleWebKit/534.30 (KHTML, like Gecko)
Version/4.0 Mobile Safari/534.30
Accept-Encoding: gzip,deflate
Accept-Language: en-US
Accept-Charset: utf-8, iso-8859-1, utf-16, *;q=0.7
Connect to espn.com:80
Opening a new connection
com.android.browser requested : GET http://espn.com:80/
Original comment by supp.san...@gmail.com
on 30 Jan 2014 at 10:04
Tried also the same with desktop. The same dropping of connection happens.
Difference is that SandroProxy sends:
HTTP/1.0 500 SandroProxy error
Content-Type: text/html
Connection: Close
Without SandroProxy chrome on pc receive proper headers and then illegal
closing of socket happens.
You can see this in chrome devtools as canceled request.
What can be changed is that SandroProxy also simulate the same.
Just sends headers from server and then close connections, before any content
is send.
But I must say that server should not just cancel connections.
You can see this kind of requests as red chrome devtools on pc.
Probably would show the same if for android chrome remote debugging.
https://developers.google.com/chrome-developer-tools/docs/remote-debugging
About imugr. Can not reproduce problem. It's working just fine.
Maybe try again and send more details.
Finished writing the response to the com.android.browser <10004>
Writing the response to the com.android.browser <10004>
***********IOException retrieving the response for
http://m.espn.go.com:80/wireless/index?w=1doxn&i=COM : *******
***********java.io.IOException: No data received from the server***********
Reading the response
Request :
GET http://m.espn.go.com:80/wireless/index?w=1doxn&i=COM HTTP/1.1
Host: m.espn.go.com
Connection: keep-alive
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
X-Requested-With: com.android.browser
User-Agent: Mozilla/5.0 (Linux; U; Android 4.2.2; en-us; HTC Vision
Build/JDQ39; CyanogenMod-10.1) AppleWebKit/534.30 (KHTML, like Gecko)
Version/4.0 Mobile Safari/534.30
Accept-Encoding: gzip,deflate
Accept-Language: en-US
Accept-Charset: utf-8, iso-8859-1, utf-16, *;q=0.7
Cookie: optimizelySegments=
Existing socket is valid, reusing it!
com.android.browser requested : GET
http://m.espn.go.com:80/wireless/index?w=1doxn&i=COM
Reading request from the com.android.browser <10004>
Version: HTTP/1.1 keepAlive: Keep-Alive reuseCount:1
Finished writing the response to the com.android.browser <10004>
Writing the response to the com.android.browser <10004>
http://m.espn.go.com:80/wireless/index?i=COM : 302 Moved Temporarily
Response:
302 Moved Temporarily
Connection: Keep-Alive
Location: http://m.espn.go.com/wireless/index?w=1doxn&i=COM
Server: barista/3.3.6
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 20
Original comment by supp.san...@gmail.com
on 30 Jan 2014 at 11:31
Changes:
http://code.google.com/p/sandrop/source/detail?r=ab70b57767009e778d0a8370be5d3e6
c5d5d9cae&name=1_5_99_server_close_conn
new version 1.5.100 on Google Play
Original comment by supp.san...@gmail.com
on 31 Jan 2014 at 8:04
Whoah, thanks for the quick turnaround!
Original comment by thomas.j...@gmail.com
on 4 Feb 2014 at 12:28
Original comment by supp.san...@gmail.com
on 10 Feb 2014 at 3:49
Original issue reported on code.google.com by
thomas.j...@gmail.com
on 29 Jan 2014 at 12:01