On Apr 11, 2012, at 11:56 AM, Thierry Boileau wrote:

>> //Note: I'm not actually using the range found above, but I've been playing 
>> with it, so I thought I'd include it.
> Actually, ranges are not intended to be used, this aspect should remain 
> automagic. :)

Okay, that's mostly good, but I might be transferring very large files 
(conceivably multi-terrabyte, though probably just a few hundred gigs for the 
most part), so I'd actually like to be able to skip the built-in range 
processing for this one resource so I can make it more efficient.

> Hello Bjorn,
> 
> 
>> I posted this message yesterday, but it never appeared on the discussion 
>> list online, so I am reposting. Apologies if you are getting it twice:
> I've just seen it, it was blocked. Since I've added you as a trusted 
> subscriber, you should not be bloked again.
> 
> Thanks for the sample code. As a first quick answer, I wonder what server 
> connector are you using? The internal one, or another such as jetty, simple, 
> servlet, etc?

Not 100% sure of the question.. do you mean container? I am not using jetting. 
My initialization code looks like this:

                        Component component = new Component();
                        component.getServers().add(Protocol.HTTP, PORT);
                        component.getDefaultHost().attach(new 
com.xonami.rest.server.ApiApplication());
                        component.start();

Is that what you wanted?

> What version of Restlet are you using?

I've tried 2.0.11 and 2.0.12

also, in the code I sent it looks like it was not "hanging" but rather pausing 
for a moment and then throwing this exception:

java.io.IOException: Timeout while writing to the queue-based output stream
        at org.restlet.engine.io.PipeStream$2.write(PipeStream.java:106)
        at java.io.OutputStream.write(OutputStream.java:99)
        at 
com.xonami.rest.server.media.RawMediaStateWithIdResource$1.write(RawMediaStateWithIdResource.java:158)
        at org.restlet.engine.io.BioUtils$2.run(BioUtils.java:394)
        at org.restlet.service.TaskService$1$1.run(TaskService.java:130)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:680)


-----------------------------
Bjorn Roche
http://www.xonami.com
Audio Collaboration
http://blog.bjornroche.com

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2947368

Reply via email to