Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > LimeWire+WireShare (Cross-platform) > LimeWire Beta Archives
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts


 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old September 15th, 2004
Disciple
 
Join Date: January 22nd, 2004
Location: Miami Beach
Posts: 16
mickish is flying high
Default 416 response, even though ranges overlap

BearShare beta testers report seeing LimeWire/4.0.6 respond with 416 Requested Range Unavailable, even though the LW server has part of the requested range:

It would be best if the server would serve as much of the requested range as it can.

http://www.bearshare.net/showthread.php?t=31319

Download to [Host2 IP] ("LimeWire/4.0.6") was Transferring, but now sent statusCode==416
--REQUEST--
GET /uri-res/N2R?urn:sha1:[123] HTTP/1.1\r\n
Host: [Host2 IP]\r\n
User-Agent: BearShare Pro 4.6.0.55\r\n
Range: bytes=76021760-76283903\r\n
Content-Disposition: inline; filename=[ABC].mp3\r\n
X-Gnutella-Content-URN: urn:sha1:[123]\r\n
X-Connection-Type: Other\r\n
X-Features: browse/1.0, queue/0.1\r\n
X-Node: [my IP]\r\n
X-Queue: 0.1\r\n
\r\n

--RESPONSE--
HTTP/1.1 416 Requested Range Unavailable\r\n
Server: LimeWire/4.0.6\r\n
Content-Type: text/plain\r\n
Content-Length: 0\r\n
X-Gnutella-Content-URN: urn:sha1:[123]\r\n
X-Available-Ranges: bytes 0-76099176\r\n
\r\n
  #2 (permalink)  
Old September 15th, 2004
arne_bab's Avatar
Draketo, small dragon.
 
Join Date: May 31st, 2002
Location: Heidelberg, Germany
Posts: 1,881
arne_bab is a great assister to others; your light through the dark tunnel
Default

Woulnd't it be better, if bearshare requested the range, which is avaible?

It gets the avaible range, so it should just request what is avaible.

Else I'm sure it can produce many bugs just because what the Bearshare client gets isn't what it requested.

The Limewire client would be a bit more flexible, if it served what it can, but the bearshare would also be more flexible, if it just requested what is avaible.

In this case Bearshare requested about 250kB, but Limewire had only the first 70kB (or so).

Des Beashare have a fixed download-segment-size?

Phex now uses flexible sizes (from 16bK to 20MB), I don't know, what LimeWire uses.
__________________

-> put this banner into your own signature! <-
--
Erst im Spiel lebt der Mensch.
Nur ludantaj homoj vivas.
GnuFU.net - Gnutella For Users
Draketo.de - Shortstories, Poems, Music and strange Ideas.
  #3 (permalink)  
Old September 15th, 2004
Disciple
 
Join Date: January 22nd, 2004
Location: Miami Beach
Posts: 16
mickish is flying high
Default

Oh, is that what LimeWire clients do? Clip their requests to the ranges available?

Regardless, clients that don't clip their requests should not be given a 416 in this situation. I think it is more likely that the LW developers intend to follow RFC2616, the HTTP 1.1 spec:

10.4.17 416 Requested Range Not Satisfiable

A server SHOULD return a response with this status code if a request included a Range request-header field (section 14.35), and none of the range-specifier values in this field overlap the current extent of the selected resource, and the request did not include an If-Range request-header field. (For byte-ranges, this means that the first- byte-pos of all of the byte-range-spec values were greater than the current length of the selected resource.)
  #4 (permalink)  
Old September 15th, 2004
Moderator
 
Join Date: May 16th, 2003
Posts: 1,118
trap_jaw4 is flying high
Default

Looks as if I was lazy...
  #5 (permalink)  
Old September 16th, 2004
Software Developer
 
Join Date: November 4th, 2002
Location: New York
Posts: 1,366
sberlin is flying high
Default

We intend on adding this support to the HTTP Server portion, at some point. Till then, the safest is to just request what the server advertises as available.
  #6 (permalink)  
Old September 17th, 2004
Disciple
 
Join Date: January 22nd, 2004
Location: Miami Beach
Posts: 16
mickish is flying high
Default OK

Thanks!
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PLEASE someone try to help me, I am not getting any response to this. bart robinson007 General Mac OSX Support 1 February 14th, 2007 04:32 AM
IP Ranges Help Filter Hosts Not Working cheg General Windows Support 0 February 7th, 2007 09:23 AM
banned IP ranges MoJoJoJo New Feature Requests 7 May 8th, 2004 02:15 AM
Feature request: boycotting IP ranges amatulic New Feature Requests 15 June 6th, 2002 10:51 AM
How to filter by IP ranges? Unregistered Download/Upload Problems 0 April 28th, 2002 04:01 PM


All times are GMT -7. The time now is 09:44 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.