big udp packets

Patrick Tullmann tullmann at cs.utah.edu
Thu Oct 14 17:33:09 PDT 1999


I had trouble with Kaffe receiving large UDP packets (~45K).  It
turned out that the default buffer size under FreeBSD wasn't big
enough.  I "fixed" the problem with the attached patch.  (Basically I
asked the kernel to reserve 128K for reach UDP socket).

I'm not sure if this is something we should foist on all Kaffe users,
though.  Thoughts?

-Pat

----- ----- ---- ---  ---  --   -    -      -         -               -
Pat Tullmann                                       tullmann at cs.utah.edu
    Not many people realize just how well known I am -- Anonymous


Index: libraries/javalib/java/net/DatagramSocket.java
===================================================================
RCS file: /home/cvspublic/kaffe/libraries/javalib/java/net/DatagramSocket.java,v
retrieving revision 1.8
diff -u -b -r1.8 DatagramSocket.java
--- DatagramSocket.java 1999/05/01 06:08:12     1.8
+++ DatagramSocket.java 1999/10/15 00:20:14
@@ -38,6 +38,8 @@
        }
        impl = factory.createDatagramSocketImpl();
        impl.create();
+       impl.setOption(SocketOptions.SO_SNDBUF, new Integer(128 * 1024));
+       impl.setOption(SocketOptions.SO_RCVBUF, new Integer(128 * 1024));
        init(port, bindAddr);
 }
 


More information about the kaffe mailing list