RE: [Simpleweb-Support] How to get noticed when SimpleServergoesdown ...
Brought to you by:
niallg
From: Niall G. <nia...@an...> - 2004-05-13 10:19:42
|
Hi > 1. For the SSL Socket wraper, is there any situation that I should wrap > another method? Not as far as Simple is concerned, the only methods used by the simple.http.connect package are the ServerSocket.accept() and ServerSocket.isClosed(). However you may want to override the ServerSocket.close() method if you wish to terminate a connection. > 2. I am using Simple for SMPP to HTTP gateway so it is designed to be > able receive lots connection with relatively small data to be passed > around. So far I use Simple like this : > webserverConn = > new Connection(new SocketHandler( > PipelineHandlerFactory.getInstance(new HttpMainHandler()), > new BufferedPipelineFactory(2096)))); If the messages and responses are small then perhaps a BufferedPipelineFactory using 2K is too much, this will only help on pipelines where it will get allot of reuse across many requests. Apart from that I think you will probably know what is best! You may also want to look at the other PipelineHandlerFactory.getInstance method which will allow you to tweak the polling configuration. Regards, Niall |