directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r371291 - /directory/sandbox/trustin/mina-spi/examples/src/main/java/org/apache/mina/examples/echoserver/EchoProtocolHandler.java
Date Sun, 22 Jan 2006 13:54:13 GMT
Author: trustin
Date: Sun Jan 22 05:54:10 2006
New Revision: 371291

URL: http://svn.apache.org/viewcvs?rev=371291&view=rev
Log:
Fixed fixmes

Modified:
    directory/sandbox/trustin/mina-spi/examples/src/main/java/org/apache/mina/examples/echoserver/EchoProtocolHandler.java

Modified: directory/sandbox/trustin/mina-spi/examples/src/main/java/org/apache/mina/examples/echoserver/EchoProtocolHandler.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trustin/mina-spi/examples/src/main/java/org/apache/mina/examples/echoserver/EchoProtocolHandler.java?rev=371291&r1=371290&r2=371291&view=diff
==============================================================================
--- directory/sandbox/trustin/mina-spi/examples/src/main/java/org/apache/mina/examples/echoserver/EchoProtocolHandler.java
(original)
+++ directory/sandbox/trustin/mina-spi/examples/src/main/java/org/apache/mina/examples/echoserver/EchoProtocolHandler.java
Sun Jan 22 05:54:10 2006
@@ -39,14 +39,7 @@
 
     public void sessionCreated( IoSession session )
     {
-        /*
-         * FIXME ... 
-        if( session instanceof SocketSession )
-        {
-            ( ( SocketSession ) session ).setSessionReceiveBufferSize( 2048 );
-        }
-         */
-        
+        session.setAttribute( "receiveBufferSize", new Integer( 2048 ) );
         session.setIdleTime( IdleStatus.BOTH_IDLE, 10 );
         
         // We're going to use SSL negotiation notification.



Mime
View raw message