For some reason there is no apt-dbg package so I compiled a new apt
package with unstripped binaries. gdb gives me this backtrace of the
http method when the connection is hung:

0  0x00007f20dfbe5c53 in select () from /lib/libc.so.6
#1  0x0000000000404b14 in HttpMethod::Go (this=0x7fff544f4ab0, 
    ToFile=<value optimized out>, Srv=0x2080aa0) at http.cc:789
#2  0x00000000004060e0 in ServerState::RunHeaders (this=0x2080aa0)
    at http.cc:396
#3  0x0000000000407ecc in HttpMethod::Loop (this=0x7fff544f4ab0)
    at http.cc:1151
#4  0x0000000000409fcb in main () at http_main.cc:19

I haven't spent too much time looking at the code but one thing that
came to mind was that the file was 189 bytes only so that maybe when it
gets to the select it is waiting for extra data after the whole file has
already been transmitted and it somehow has missed that.

-- 
apt-get hangs with "Waiting for headers" for exactly two minutes on 
dl.google.com apt line
https://bugs.launchpad.net/bugs/528925
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to