Seems to be a curl bug. See: http_proxy="localhost:3142" strace -s 4098 curl http://archive.ubuntu.com/dists/trusty/InRelease ... sendto(4, "GET http://archive.ubuntu.com/dists/trusty/InRelease HTTP/1.1\r\nHost: archive.ubuntu.com\r\nUser-Agent: curl/7.47.0\r\nAccept: */*\r\nProxy-Connection: Keep-Alive\r\n\r\n", 159, MSG_NOSIGNAL, NULL, 0) = 159 poll([{fd=4, events=POLLIN|POLLPRI|POLLRDNORM|POLLRDBAND}], 1, 0) = 0 (Timeout) poll([{fd=4, events=POLLIN}], 1, 198) = 0 (Timeout) poll([{fd=4, events=POLLIN|POLLPRI|POLLRDNORM|POLLRDBAND}], 1, 0) = 0 (Timeout) poll([{fd=4, events=POLLIN}], 1, 0) = 0 (Timeout) poll([{fd=4, events=POLLIN|POLLPRI|POLLRDNORM|POLLRDBAND}], 1, 0) = 0 (Timeout) poll([{fd=4, events=POLLIN}], 1, 1000) = 1 ([{fd=4, revents=POLLIN}]) poll([{fd=4, events=POLLIN|POLLPRI|POLLRDNORM|POLLRDBAND}], 1, 0) = 1 ([{fd=4, revents=POLLIN|POLLRDNORM}]) recvfrom(4, "HTTP/1.1 404 Not Found\r\nContent-Length: 0\r\nDate: Sun Jun 5 08:12:44 2016\r\nServer: Debian Apt-Cacher NG/0.9.4\r\nX-Original-Source: http://archive.ubuntu.com/dists/trusty/InRelease\r\nConnection: Keep-Alive\r\n\r\n", 16384, 0, NULL, NULL) = 206 close(4) = 0 close(3) = 0 exit_group(0) = ? +++ exited with 0 +++
It get's all information and still returns 0. That's why I stopped using libcurl in the last decade... Pandora's box :-( -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1440293 Title: acng returns incorrect information (200 instead of 404) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt-cacher-ng/+bug/1440293/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs