Re: java.net.SocketException: Broken pipe

2011-04-27 Thread ksmoran
Thanks for the response. So I'm sending 8MBs of data at a time to a server which stores it. Later on, that server needs to send it back. What I don't understand is that I never get this error when I'm writing from the sender to the receiver, but instead it only happens from sending back from recei

java.net.SocketException: Broken pipe

2011-04-26 Thread ksmoran
I have a URLConnection that connects to a Restlet URI which sends back 8MB of data to the sender. However, often times I get the following message and I lose a lot of data: org.restlet.engine.http.connector.Connection writeMessage WARNING: Exception while writing the message body. java.net.Socket

Restlet 2.1: Consider increasing the maximum number of threads error

2011-04-19 Thread ksmoran
Hi all, I'm using restlet 2.1 and am getting this: INFO: Stop accepting new connections and transactions. Consider increasing the maximum number of threads. How do I increase the number of threads? Googling it only brought me to older versions of Restlets that don't seem to apply anymore Thanks

Re: Restlet 2.1: Consider increasing the maximum number of threads error

2011-04-19 Thread ksmoran
Also, I did this: Server server = new Server(Protocol.HTTP, port); component.getServers().add(server); server.getContext().getParameters().add("maxThreads​", "50"); But the thing still gives the message at 10 requests. Also, this crashes because I'm having a "master" use