Hi Bryan,

 

After briefly looking at your project, it seems that you are using the 
internal/default HTTP client connector, which has little configuration options 
in version 2.0 regarding timeouts.

 

I would suggest either to use the HTTP Client extension 
(org.restlet.ext.httpclient.jar) which has much more options (or the 
org.restlet.ext.net.jar):

http://www.restlet.org/documentation/2.0/jee/ext/org/restlet/ext/httpclient/HttpClientHelper.html

 

Otherwise, you could try upgrading to version 2.1 M7 where the internal 
connector has been greatly enhanced (using non-blocking and extensive 
configuration options).

 

Best regards,
Jerome
--
Restlet ~ Founder and Technical Lead ~  <http://www.restlet.org/> 
http://www.restlet.o​rg
Noelios Technologies ~  <http://www.noelios.com/> http://www.noelios.com

 

 

 

 

De : Bryan Hunt [mailto:[email protected]] 
Envoyé : mardi 30 août 2011 04:15
À : [email protected]
Objet : Re: Problems with two servers talking to each other

 

I managed to create a test setup to reproduce the problem.  After a little 
experimentation, I also discovered that the problem is timing related.  If the 
time between requests from ServerA to ServerB is short (say 3 seconds), 
everything works fine.  If the time between request from ServerA to ServerB is 
long (say 5 minutes), it fails.

 

I'm attaching the test case as Eclipse source projects.  The bundle for ServerA 
contains a target definition, and each bundle contains a launch configuration.  
Launch Server B followed by Server A.  The servers are configured for ports 
8000, and 8080.  ServerA is configured to sleep 5 minutes between requests 
which should cause the failure.

 

Bryan

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

Reply via email to