Инструменты пользователя

Инструменты сайта


soft:apt-cacher:error_reading_from_server_-_read_104_connection_reset_by_peer

====== Error reading from server - read (104 Connection reset by peer) ====== Версия: **apt-cacher 1.6.7ubuntu4**. ===== Решение ===== <code diff> --- apt-cacher.orig 2009-05-20 12:57:29.000000000 +0400 +++ apt-cacher 2009-05-20 12:58:07.000000000 +0400 @@ -842,14 +842,20 @@ $headstring .= 'Connection: '.($concloseflag ? 'Close' : 'Keep-Alive')."\r\n"; # keep only parts interesting for apt - for(<$in>) { - if(/^Last-Modified|Content|Accept|ETag|Age/) { - $headstring.=$_; - if(/^Content-Length:\ *(\d+)/) { - $explen=$1; + if ($code==200) { + for(<$in>) { + chomp; + if(/^Last-Modified|Content|Accept|ETag|Age/) { + $headstring.=$_."\r\n"; + if(/^Content-Length:\ *(\d+)/) { + $explen=$1; + } } } } + else { + $headstring.="Content-Length: 0\r\n"; + } close($in); &release_global_lock; @@ -859,7 +865,7 @@ debug_message("Header sent: $headstring"); # Stop after sending the header with errors - return if HTTP::Status::is_server_error($code); + return if HTTP::Status::is_error($code); } else { </code> Источник: [[http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg628634.html|Bug#517761: apt-cacher: Translation-en_US.bz2 fails when LANG on client not equal to LANG on server]]

Дискуссия

Enter your comment
 
soft/apt-cacher/error_reading_from_server_-_read_104_connection_reset_by_peer.txt · Последние изменения: 16.11.2009 17:26 (внешнее изменение)

Инструменты страницы