MLDonkey Forum Index
Homepage •  Bugs •  Tasks •  Patches •  SF.net Project Page •  ChangeLog •  German forum •  Links •  Wiki •  Downloads
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
HTTP client: bad reply ([HTTPcl] 501: bad reply for)

 
Post new topic   Reply to topic    MLDonkey Forum Index -> Russian
View previous topic :: View next topic  
Author Message
Ivan-AL
neophyte


Joined: 21 Nov 2011
Posts: 8

PostPosted: Mon Nov 21, 2011 10:02 am    Post subject: HTTP client: bad reply ([HTTPcl] 501: bad reply for) Reply with quote

Привет. Где-то пару недель назад мой mldonkey перестал понимать ссылки на .torrent файлы, в логе просто
Code:
2011/11/21 11:48:58 [HTTPcl] 501: bad reply for: http://d.rutor.org/download/153992

Раньше всё было ок, ссылка общедоступная, без авторизации, выдает сразу .torrent файл.
Если загрузить себе локально .torrent файл, затем положить его в папочку temp и указать в DL "temp/file.torrent" - то mldonkey прохавает успешно.

А вот напрямую указать ссылку на http://<resource> не хочет.

Переставил полностью mldonkey (сначала под чистую грохнул, вместе с конфигами и всё такое), потом заново поставил, - не помогло.

В логах также периодически:
Code:
2011/11/21 11:49:02 [bS] accept failed: Software caused connection abort : unexpected exn exec can_read
2011/11/21 11:52:21 [bS] accept failed: Software caused connection abort : unexpected exn exec can_read
2011/11/21 11:53:18 [bS] accept failed: Software caused connection abort : unexpected exn exec can_read
2011/11/21 11:55:25 [bS] accept failed: Software caused connection abort : unexpected exn exec can_read


Куда копать?
Что случилось?

OS: Freebsd stable 8.2
фаерволом открыты 6881 и 6882 на вход порты, кроме того, с сервера открыто всё на исход. обычным wget-ом эту же ссылку качает без проблем. Ну и раньше как бы таких проблем не наблюдалось.

sysinfo:
Code:
> sysinfo

        --Buildinfo--
Version:         MLNet Multi-Network p2p client version 3.1.0 (mlnet-real)
Networks:        Global Shares Direct Connect Fasttrack FileTP BitTorrent Donkey (SUI)
Ocaml version:   3.12.0 - C compiler version: 4.2.2 - C++ compiler version: 4.2.2
Built on:        FreeBSD i386 8.2-STABLE (little endian)
Configure args:   '--enable-option-checking=fatal' '--enable-ocamlver=3' '--with-libiconv-prefix=/usr/local' '--disable-gui' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=i386-portbld-freebsd8.2' 'build_alias=i386-portbld-freebsd8.2' 'CC=cc' 'CFLAGS=-O2 -pipe -fno-strict-aliasing' 'LDFLAGS= -L/usr/local/lib -L/usr/local/lib' 'CPPFLAGS=-I/usr/local/include -I/usr/local/include' 'CPP=cpp' 'CXX=c++' 'CXXFLAGS=-O2 -pipe -fno-strict-aliasing'
Features:         threads zlib-1.2.3 bzip2-1.0.5 gd(jpg/png-1.4.8) iconv(active) magic(active) no-upnp no-natpmp no-check-bounds

        --Runinfo--
MLDonkey user:           admin (PW Protected) - uptime: 20m 0s - running as wheel:al
Enabled nets:     Donkey BitTorrent FileTP
Server usage:    enabled
Geoip:           enabled, GeoLite data created by MaxMind, available from http://maxmind.com/
IP blocking:     local: 0 ranges - web: 200783 ranges
Libmagic:        file-type recognition database present
System info:     FreeBSD server.my.kiev.ua 8.2-STABLE FreeBSD 8.2-STABLE #5: Tue May 10 14:59:41 EEST 2011     root@server.my.kiev.ua:/usr/obj/usr/src/sys/AL i386
                 language: EN - locale: ASCII - UTC offset: +0200
                 max_string_length: 16777211 - word_size: 32 - max_array_length: 4194303 - max_int: 1073741823
                 max file descriptors: 11095 - max useable file size: 2^63-1 bits (do the maths ;-p)

        --Portinfo--
Network   |  Port|Type
----------+------+-------------------
BitTorrent|  6882|client_port TCP
BitTorrent|  6881|tracker_port TCP
BitTorrent| 21939|dht_port UDP
Core      |  4080|http_port
Core      |  4000|telnet_port
Core      |  4001|gui_port
Donkey    | 19811|client_port TCP
Donkey    | 19815|client_port UDP

        --Diskinfo--
Directory           |Type                         |    used|    free|%free|Filesystem
--------------------+-----------------------------+--------+--------+-----+----------
/home/al/.mldonkey  |core/ini files               |   1.19G|   1.23T|  99%|zfs
temp                |temp/downloading             | 232.70G|   1.23T|  84%|zfs
incoming/directories|shared (incoming_directories)| 232.70G|   1.23T|  84%|zfs
incoming/files      |shared (incoming_files)      | 232.70G|   1.23T|  84%|zfs
mlnet-real_tmp      |$MLDONKEY_TEMP               |   1.19G|   1.23T|  99%|zfs
Back to top
View user's profile Send private message
Ivan-AL
neophyte


Joined: 21 Nov 2011
Posts: 8

PostPosted: Mon Nov 21, 2011 10:27 am    Post subject: Reply with quote

Немного разобрался. Увеличил verbosity уровень, увидел что mldonkey посылает сначала HEAD запрос.
Code:

2011/11/21 12:24:17 [dCon] received URL submit ( q http://d.rutor.org/download/153992)
2011/11/21 12:24:17 [dCmd] execute command "dllink" "http://d.rutor.org/download/153992"
2011/11/21 12:24:17 [HTTPcl] make_full_request on URL: HEAD /download/153992 HTTP/1.0\r\nHost: d.rutor.org\r\nAccept-Encoding: gzip\r\nUser-Agent: MLDonkey/3.1.0\r\nAccept: */*\r\nConnection: close\r\nReferer: http://d.rutor.org/download/153992\r\n\r\n
2011/11/21 12:24:17 [HTTPcl] get_page: HEAD /download/153992 HTTP/1.0\r\nHost: d.rutor.org\r\nAccept-Encoding: gzip\r\nUser-Agent: MLDonkey/3.1.0\r\nAccept: */*\r\nConnection: close\r\nReferer: http://d.rutor.org/download/153992\r\n\r\n
2011/11/21 12:24:17 [HTTPcl] 501: bad reply for: http://d.rutor.org/download/153992


Действительно, если делать HEAD а не GET запрос, то даный веб-сайт отвечает странно.
Code:


#]telnet d.rutor.org 80
Trying 91.218.38.132...
Connected to d.rutor.org.
Escape character is '^]'.
HEAD /download/153992 HTTP/1.0
Host:d.rutor.org

HTTP/1.1 501 Not Implemented
Content-Type: text/html; charset=utf-8
Retry-After: 3600
Content-Length: 375
Accept-Ranges: bytes
Date: Mon, 21 Nov 2011 10:26:41 GMT
Age: 0
Connection: close
X-Debug: miss
X-Debug-ID: 615408906


<xml>
<DOCTYPE>
<html>
  <head>
    <title>501 Not Implemented</title>
   <meta>
  </head>
  <body>
    <h1>Error 501 Not Implemented</h1>
    <p>Not Implemented</p>
  </body>
</html>
Connection closed by foreign host.


буду пытаться связаться с удаленным сайтом, ну а тут пока вопрос такой - без HEAD, а сразу GET низзя никак?
Back to top
View user's profile Send private message
ygrek
professional


Joined: 20 Mar 2010
Posts: 521

PostPosted: Mon Nov 21, 2011 12:10 pm    Post subject: Reply with quote

http://savannah.nongnu.org/task/?6083
_________________
Download | Report bugs | git mirror
Back to top
View user's profile Send private message Visit poster's website
Ivan-AL
neophyte


Joined: 21 Nov 2011
Posts: 8

PostPosted: Mon Nov 21, 2011 1:18 pm    Post subject: Reply with quote

ygrek wrote:
http://savannah.nongnu.org/task/?6083

шикарно. 5 лет таске.
как-то ускорить мона? Smile
Back to top
View user's profile Send private message
ygrek
professional


Joined: 20 Mar 2010
Posts: 521

PostPosted: Mon Nov 21, 2011 3:15 pm    Post subject: Reply with quote

Можно написать патч. Стек задач накопился большой - времени мало. Когда доберусь - тогда пофиксю.
_________________
Download | Report bugs | git mirror
Back to top
View user's profile Send private message Visit poster's website
Ivan-AL
neophyte


Joined: 21 Nov 2011
Posts: 8

PostPosted: Mon Nov 21, 2011 6:54 pm    Post subject: Reply with quote

ygrek wrote:
Можно написать патч. Стек задач накопился большой - времени мало. Когда доберусь - тогда пофиксю.

спасибо, буду ждать.
если бы ещё маякнуть на мыло, ivan[at]just.for.mail.in.my.kiev.ua
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    MLDonkey Forum Index -> Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Sourceforge.net Logo