Skip to content
Browse files

Switched demo server to NIO sockets

  • Loading branch information...
1 parent 41f3b77 commit cceb35bc23eea3e2923a3ddc5b7cd82ab88fbaf3 @jjlauer jjlauer committed May 5, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/test/java/com/cloudhopper/smpp/demo/ServerMain.java
View
4 src/test/java/com/cloudhopper/smpp/demo/ServerMain.java
@@ -71,7 +71,7 @@ public Thread newThread(Runnable r) {
SmppServerConfiguration configuration = new SmppServerConfiguration();
configuration.setPort(2776);
configuration.setMaxConnections(10);
- configuration.setNonBlockingSocketsEnabled(true);
+ configuration.setNonBlockingSocketsEnabled(false);
configuration.setDefaultRequestExpiryTimeout(30000);
configuration.setDefaultWindowMonitorInterval(15000);
configuration.setDefaultWindowSize(5);
@@ -92,7 +92,7 @@ public Thread newThread(Runnable r) {
smppServer.stop();
logger.info("SMPP server stopped");
- logger.info("Final server counters: {}", smppServer.getCounters());
+ logger.info("Server counters: {}", smppServer.getCounters());
}
public static class DefaultSmppServerHandler implements SmppServerHandler {

0 comments on commit cceb35b

Please sign in to comment.
Something went wrong with that request. Please try again.