I'm having problems debugging networking with the emulator.

I'm on a Fedora 8 system, using the emulator I built from a full repo
checkout and build
as of Sep 4.  I get the same problem with an emulator from the 1.5 released
SDK.
I'm behind a firewall, and when I launch the browser and try to connect to
the
Google site from within the emulator, I get a popup saying "No network
connection
the page will continue loading after the network connection has been
restored".
The browser itself says "Web page not available".

Issue one:
I tried following the instructions at:
http://developer.android.com/guide/developing/tools/emulator.html
to debug my proxy connection.  On that page, in the section
"Using the Emulator with a Proxy" it says to use the '-verbose-proxy'
option.  I could find no such option in the emulator.  I found a e-mail
exchange that referenced the '-debug-proxy' option, which seems to
help with this.

I believe the emulator.html web page has the wrong name for the
option to use to debug the emulator proxy.  I believe it should be
changed to '-debug-proxy'.

Issue two:
The '-debug-proxy' was not listed by the emulator as one of its
options when '-help' is used to display emulator options.


Issue three:
I could not connect through my company proxy and get valid
data back from www.google.com.  I used the -debug-proxy
emulator option, and it gave me the information below.

My proxy is splitting the response into multiple packets.
I used wireshark to see the packets, and the TCP response
from my desktop to the proxy server included several
TCP RST commands.  I didn't save the trace, but I can
reproduce this if it would help.

Does anyone know if there is a known bug in the emulator
proxy-handling in the internal firewall/router?

Thanks,
 -- Eric


-debug-proxy messages:
-------------------------------
http_service_connect: trying to connect to 74.125.159.104:80
http_service_connect: using HTTP rewriter
tcp:74.125.159.104:80(16): connecting
tcp:74.125.159.104:80(16): connected to proxy
tcp:74.125.159.104:80(16): socket pair created
tcp:74.125.159.104:80(16): received 'GET /m?client=ms-android-google
HTTP/1.1'
tcp:74.125.159.104:80(16): request first line ok
tcp:74.125.159.104:80(16): received 'Host: www.google.com'
tcp:74.125.159.104:80(16): received 'Accept-Encoding: gzip'
tcp:74.125.159.104:80(16): received 'Accept:
application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'
tcp:74.125.159.104:80(16): received 'User-Agent: Mozilla/5.0 (Linux; U;
Android Donut; en-us; generic Build/Donut) AppleWebKit/528.5+ (KHTML, like
Gecko) Version/3.1.2 Mobile Safari/525.20.1'
tcp:74.125.159.104:80(16): received 'Cookie:
PREF=ID=7f73ef02e9116035:TM=1252109542:LM=1252109542:S=yw0YmjPKJ1426GiC;
MPRF=H4sIAAAAAAAAAKs4vGf_050qXUwMk5gUDCyNTc3MjVJMUkzNUo2STCwt08wSgbShiWGygZlBCgDu19sFLQAAAA'
tcp:74.125.159.104:80(16): received 'Accept-Language: en-US'
tcp:74.125.159.104:80(16): received 'Accept-Charset: utf-8, iso-8859-1,
utf-16, *;q=0.7'
tcp:74.125.159.104:80(16): received ''
tcp:74.125.159.104:80(16): request headers ok
tcp:74.125.159.104:80(16): sending 615 bytes:
>> 47 45 54 20 68 74 74 70 3a 2f 2f 77 77 77 2e 67    GET http://www.g
>> 6f 6f 67 6c 65 2e 63 6f 6d 2f 6d 3f 63 6c 69 65    oogle.com/m?clie
>> 6e 74 3d 6d 73 2d 61 6e 64 72 6f 69 64 2d 67 6f    nt=ms-android-go
>> 6f 67 6c 65 20 48 54 54 50 2f 31 2e 31 0d 0a 48    ogle HTTP/1.1..H
>> 6f 73 74 3a 20 77 77 77 2e 67 6f 6f 67 6c 65 2e    ost: www.google.
>> 63 6f 6d 0d 0a 41 63 63 65 70 74 2d 45 6e 63 6f    com..Accept-Enco
>> 64 69 6e 67 3a 20 67 7a 69 70 0d 0a 41 63 63 65    ding: gzip..Acce
>> 70 74 3a 20 61 70 70 6c 69 63 61 74 69 6f 6e 2f    pt: application/
>> 78 6d 6c 2c 61 70 70 6c 69 63 61 74 69 6f 6e 2f    xml,application/
>> 78 68 74 6d 6c 2b 78 6d 6c 2c 74 65 78 74 2f 68    xhtml+xml,text/h
>> 74 6d 6c 3b 71 3d 30 2e 39 2c 74 65 78 74 2f 70    tml;q=0.9,text/p
>> 6c 61 69 6e 3b 71 3d 30 2e 38 2c 69 6d 61 67 65    lain;q=0.8,image
>> 2f 70 6e 67 2c 2a 2f 2a 3b 71 3d 30 2e 35 0d 0a    /png,*/*;q=0.5..
>> 55 73 65 72 2d 41 67 65 6e 74 3a 20 4d 6f 7a 69    User-Agent: Mozi
>> 6c 6c 61 2f 35 2e 30 20 28 4c 69 6e 75 78 3b 20    lla/5.0 (Linux;
>> 55 3b 20 41 6e 64 72 6f 69 64 20 44 6f 6e 75 74    U; Android Donut
>> 3b 20 65 6e 2d 75 73 3b 20 67 65 6e 65 72 69 63    ; en-us; generic
>> 20 42 75 69 6c 64 2f 44 6f 6e 75 74 29 20 41 70     Build/Donut) Ap
>> 70 6c 65 57 65 62 4b 69 74 2f 35 32 38 2e 35 2b    pleWebKit/528.5+
>> 20 28 4b 48 54 4d 4c 2c 20 6c 69 6b 65 20 47 65     (KHTML, like Ge
>> 63 6b 6f 29 20 56 65 72 73 69 6f 6e 2f 33 2e 31    cko) Version/3.1
>> 2e 32 20 4d 6f 62 69 6c 65 20 53 61 66 61 72 69    .2 Mobile Safari
>> 2f 35 32 35 2e 32 30 2e 31 0d 0a 43 6f 6f 6b 69    /525.20.1..Cooki
>> 65 3a 20 50 52 45 46 3d 49 44 3d 37 66 37 33 65    e: PREF=ID=7f73e
>> 66 30 32 65 39 31 31 36 30 33 35 3a 54 4d 3d 31    f02e9116035:TM=1
>> 32 35 32 31 30 39 35 34 32 3a 4c 4d 3d 31 32 35    252109542:LM=125
>> 32 31 30 39 35 34 32 3a 53 3d 79 77 30 59 6d 6a    2109542:S=yw0Ymj
>> 50 4b 4a 31 34 32 36 47 69 43 3b 20 4d 50 52 46    PKJ1426GiC; MPRF
>> 3d 48 34 73 49 41 41 41 41 41 41 41 41 41 4b 73    =H4sIAAAAAAAAAKs
>> 34 76 47 66 5f 30 35 30 71 58 55 77 4d 6b 35 67    4vGf_050qXUwMk5g
>> 55 44 43 79 4e 54 63 33 4d 6a 56 4a 4d 55 6b 7a    UDCyNTc3MjVJMUkz
>> 4e 55 6f 32 53 54 43 77 74 30 38 77 53 67 62 53    NUo2STCwt08wSgbS

tcp:74.125.159.104:80(16): request sent, waiting for reply
tcp:74.125.159.104:80(16): received 'HTTP/1.1 200 OK'
tcp:74.125.159.104:80(16): reply first line ok
tcp:74.125.159.104:80(16): received 'Cache-Control: private,
max-age=1209600'
tcp:74.125.159.104:80(16): received 'Content-Type: text/html; charset=UTF-8'
tcp:74.125.159.104:80(16): received 'Date: Wed, 09 Sep 2009 02:56:23 GMT'
tcp:74.125.159.104:80(16): received 'X-Content-Type-Options: nosniff'
tcp:74.125.159.104:80(16): received 'Server: GFE/2.0'
tcp:74.125.159.104:80(16): received 'Expires: Wed, 09 Sep 2009 02:56:23 GMT'
tcp:74.125.159.104:80(16): received 'Transfer-Encoding: chunked'
tcp:74.125.159.104:80(16): received 'Proxy-Connection: Keep-Alive'
tcp:74.125.159.104:80(16): received 'Connection: Keep-Alive'
tcp:74.125.159.104:80(16): received 'Content-Encoding: gzip'
tcp:74.125.159.104:80(16): received 'Set-Cookie:
MPRF=H4sIAAAAAAAAAKu4-uv1050qXUwMk5gUDCyNTc3MjVJMUkzNUo2STCwt08wSgbShiWGygZlBCgCszU4MLQAAAA;
expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.com'
tcp:74.125.159.104:80(16): received ''
tcp:74.125.159.104:80(16): reply headers ok
tcp:74.125.159.104:80(16): sending 505 bytes:
>> 48 54 54 50 2f 31 2e 31 20 32 30 30 20 4f 4b 0d    HTTP/1.1 200 OK.
>> 0a 43 61 63 68 65 2d 43 6f 6e 74 72 6f 6c 3a 20    .Cache-Control:
>> 70 72 69 76 61 74 65 2c 20 6d 61 78 2d 61 67 65    private, max-age
>> 3d 31 32 30 39 36 30 30 0d 0a 43 6f 6e 74 65 6e    =1209600..Conten
>> 74 2d 54 79 70 65 3a 20 74 65 78 74 2f 68 74 6d    t-Type: text/htm
>> 6c 3b 20 63 68 61 72 73 65 74 3d 55 54 46 2d 38    l; charset=UTF-8
>> 0d 0a 44 61 74 65 3a 20 57 65 64 2c 20 30 39 20    ..Date: Wed, 09
>> 53 65 70 20 32 30 30 39 20 30 32 3a 35 36 3a 32    Sep 2009 02:56:2
>> 33 20 47 4d 54 0d 0a 58 2d 43 6f 6e 74 65 6e 74    3 GMT..X-Content
>> 2d 54 79 70 65 2d 4f 70 74 69 6f 6e 73 3a 20 6e    -Type-Options: n
>> 6f 73 6e 69 66 66 0d 0a 53 65 72 76 65 72 3a 20    osniff..Server:
>> 47 46 45 2f 32 2e 30 0d 0a 45 78 70 69 72 65 73    GFE/2.0..Expires
>> 3a 20 57 65 64 2c 20 30 39 20 53 65 70 20 32 30    : Wed, 09 Sep 20
>> 30 39 20 30 32 3a 35 36 3a 32 33 20 47 4d 54 0d    09 02:56:23 GMT.
>> 0a 54 72 61 6e 73 66 65 72 2d 45 6e 63 6f 64 69    .Transfer-Encodi
>> 6e 67 3a 20 63 68 75 6e 6b 65 64 0d 0a 50 72 6f    ng: chunked..Pro
>> 78 79 2d 43 6f 6e 6e 65 63 74 69 6f 6e 3a 20 4b    xy-Connection: K
>> 65 65 70 2d 41 6c 69 76 65 0d 0a 43 6f 6e 6e 65    eep-Alive..Conne
>> 63 74 69 6f 6e 3a 20 4b 65 65 70 2d 41 6c 69 76    ction: Keep-Aliv
>> 65 0d 0a 43 6f 6e 74 65 6e 74 2d 45 6e 63 6f 64    e..Content-Encod
>> 69 6e 67 3a 20 67 7a 69 70 0d 0a 53 65 74 2d 43    ing: gzip..Set-C
>> 6f 6f 6b 69 65 3a 20 4d 50 52 46 3d 48 34 73 49    ookie: MPRF=H4sI
>> 41 41 41 41 41 41 41 41 41 4b 75 34 2d 75 76 31    AAAAAAAAAKu4-uv1
>> 30 35 30 71 58 55 77 4d 6b 35 67 55 44 43 79 4e    050qXUwMk5gUDCyN
>> 54 63 33 4d 6a 56 4a 4d 55 6b 7a 4e 55 6f 32 53    Tc3MjVJMUkzNUo2S
>> 54 43 77 74 30 38 77 53 67 62 53 68 69 57 47 79    TCwt08wSgbShiWGy
>> 67 5a 6c 42 43 67 43 73 7a 55 34 4d 4c 51 41 41    gZlBCgCszU4MLQAA
>> 41 41 3b 20 65 78 70 69 72 65 73 3d 53 75 6e 2c    AA; expires=Sun,
>> 20 31 37 2d 4a 61 6e 2d 32 30 33 38 20 31 39 3a     17-Jan-2038 19:
>> 31 34 3a 30 37 20 47 4d 54 3b 20 70 61 74 68 3d    14:07 GMT; path=
>> 2f 3b 20 64 6f 6d 61 69 6e 3d 2e 67 6f 6f 67 6c    /; domain=.googl
>> 65 2e 63 6f 6d 0d 0a 0d 0a                         e.com....

tcp:74.125.159.104:80(16): body_length=0 body_mode=CHUNKED
tcp:74.125.159.104:80(16): reply sent, waiting for body
tcp:74.125.159.104:80(16): waiting chunk header
tcp:74.125.159.104:80(16): received 'A'
tcp:74.125.159.104:80(16): received 10 bytes:
<< 1f 8b 08 00 00 00 00 00 00 00                      ..........

tcp:74.125.159.104:80(16): chunk completed (0 bytes)
tcp:74.125.159.104:80(16): sending 11 bytes:
>> 41 1f 8b 08 00 00 00 00 00 00 00                   A..........

tcp:74.125.159.104:80(16): sent closed=0 data=0 n=0 ret=0
tcp:74.125.159.104:80(16): waiting chunk header
tcp:74.125.159.104:80(16): received ''
tcp:74.125.159.104:80(16): blocked
tcp:74.125.159.104:80(16): received '4183'
tcp:74.125.159.104:80(16): can't parse header '4183'

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to