RE: Hang when calling setStatus with CLIENT_ERROR_BAD_REQUEST

2010-11-09 Thread webpost
version: 2.0.3 (stable) I am seeing this too, although not only on CLIENT_ERROR_BAD_REQUEST. Did you get anywhere discovering what it might be ? Regards Fraser -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2680149

Data loss between HTTP client and restlet server, errors writing to non-blocking channel

2010-11-09 Thread Carles Barrobés
I get these errors frequently in my restlet server log. I'm running restlet 2.0-RC04 as a standalone process. I consume the web services with Apache HTTP client 3.1. It seems to be related with serving "relatively" large pages (it seems to get more frequent). At the HTTP client side, sometimes th

Re: Data loss between HTTP client and restlet server, errors writing to non-blocking channel

2010-11-09 Thread Tal Liron
I've been seeing this strange behavior in one of my hosts, which does have a weird setup. I "solved" it by putting Restlet (the server) behind an Apache reverse proxy. Somehow Apache streamlined the connections for me. I'm not saying this is the solution, but perhaps it can help you isolate whe

Re: Data loss between HTTP client and restlet server, errors writing to non-blocking channel

2010-11-09 Thread Carles Barrobés
I just tried using nginx as a reverse proxy. It doesn't seem to make any difference, data is still being lost. -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/Data-loss-between-HTTP-client-and-restlet-server-errors-writing-to-non-blocking-channel-tp5720451p5721844.h

XStream extention and NO_REFERENCES

2010-11-09 Thread webpost
I am using the XStream extension with ServerResource, and the generated XML contains references. Is there a way to disable this? It seems Xstream.setMode(XStream.NO_REFERENCES) should do it, but how do i get the XStream instance from within the @Get("xml") retrieve() method? -

InputStream In not closing properly in InputRepresentation Class

2010-11-09 Thread Somu
Hello Jerome , Thierry, I'm was using the Restlet to serve the pdf retrievals and while I was testing I found that InputRepresentation.release() method is not closing the inputstream properly if there is any socket exception or IO exception. I tested with Restlet 1.1.10 and Restlet 2.0.2 version

Serving static files via CLAP protocol

2010-11-09 Thread gopheralex
Good people of Restlet-Land, I'm using Restlet 2.0.3 JSE, including its built-in web server, in a small standalone Java application. Having got a few resources working, my next task is to serve a directory of static files from within a JAR file. As I understand, I need to use the CLAP protocol for