Jump to content

Connect tracker : Connection closed by peer


kalafatic

Recommended Posts

Posted

Hi,

I sent this problem to troubleshooting forum but maybe it is bug...

I have my own implementation of BT (Java) and I am testing it.

After torrent creation and adding torrent to my tracker on LAN, connection to tracker ends with "Connection closed by peer" (Vuze client runs perfectly).

The tracker response code is simple:

byte[] encodedResponse = BEncoder.encode(response);

socket.getOutputStream().write(encodedResponse);

socket.getOutputStream().flush();

socket.close();

When I comment socket.close() the timeout exception occurs.

Anybody knows the problem or solution ?

Thank you,

Petr

Posted

Hi,

I will try search, maybe I miss something.

µTorrent shows closed connection.

µTorrent connect tracker then tracker parse request, build reponse, send it and close connection.

Testing on one PC in LAN, same problems with other clients (BitLord, BitComet).

Petr

Request/response :

GET /announce?info_hash=%b4j%bc%b4%e3%28%ea%f0%0a%be%1c%f3%89%ba%8d%ddi%f9l%83&peer_id=M6-4-0--%afF%1e%1fv%b6%ffay%a2x%eb&port=38550&uploaded=0&downloaded=0&left=613638&corrupt=0&key=418DB0B8&event=started&numwant=200&compact=1&no_peer_id=1 HTTP/1.1Host: 192.168.0.11:6883User-Agent: BitTorrent/6400(18095)Accept-Encoding: gzip

d8:completei1e10:downloadedi0e10:incompletei0e8:intervali10e12:min intervali10e5:peers12:...........e

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...