directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r415870 - /directory/trunks/mina/core/src/main/java/org/apache/mina/transport/socket/nio/SocketSessionImpl.java
Date Wed, 21 Jun 2006 01:52:54 GMT
Author: trustin
Date: Tue Jun 20 18:52:54 2006
New Revision: 415870

URL: http://svn.apache.org/viewvc?rev=415870&view=rev
Log:
Possible fix for DIRMINA-200: IBM iSeries throws unexpected SocketException
* added special handling code for getTrafficClass


Modified:
    directory/trunks/mina/core/src/main/java/org/apache/mina/transport/socket/nio/SocketSessionImpl.java

Modified: directory/trunks/mina/core/src/main/java/org/apache/mina/transport/socket/nio/SocketSessionImpl.java
URL: http://svn.apache.org/viewvc/directory/trunks/mina/core/src/main/java/org/apache/mina/transport/socket/nio/SocketSessionImpl.java?rev=415870&r1=415869&r2=415870&view=diff
==============================================================================
--- directory/trunks/mina/core/src/main/java/org/apache/mina/transport/socket/nio/SocketSessionImpl.java
(original)
+++ directory/trunks/mina/core/src/main/java/org/apache/mina/transport/socket/nio/SocketSessionImpl.java
Tue Jun 20 18:52:54 2006
@@ -345,13 +345,15 @@
                 }
                 catch( SocketException e )
                 {
-                    throw new RuntimeIOException( e );
+                    // Throw an exception only when setTrafficClass is also available.
+                    if( SocketSessionConfigImpl.isSetTrafficClassAvailable() )
+                    {
+                        throw new RuntimeIOException( e );
+                    }
                 }
             }
-            else
-            {
-                return 0;
-            }
+
+            return 0;
         }
 
         public void setTrafficClass( int tc )



Mime
View raw message