directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: rev 56329 - incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/kdc/server/udp
Date Tue, 02 Nov 2004 02:47:32 GMT
Author: erodriguez
Date: Mon Nov  1 18:47:31 2004
New Revision: 56329

Modified:
   incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/kdc/server/udp/Handler.java
Log:
Removed KerberosException handling from front-end.  KerberosExceptions are now converted to
KRB_ERROR messags for shipment to clients.

Modified: incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/kdc/server/udp/Handler.java
==============================================================================
--- incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/kdc/server/udp/Handler.java
(original)
+++ incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/kdc/server/udp/Handler.java
Mon Nov  1 18:47:31 2004
@@ -26,21 +26,12 @@
 	public void process(DatagramSocket socket, DatagramPacket packet, KdcDispatcher kdc)
 			throws IOException {
 		
-		try {
-	        System.out.println("Received request with " + packet.getLength() + " bytes.");
-			
-			byte[] replyBytes = kdc.dispatch(packet.getData());
-	
-	        InetAddress address = packet.getAddress();
-	        int port = packet.getPort();
-	        packet = new DatagramPacket(replyBytes, replyBytes.length, address, port);
-	        socket.send(packet);
-	        
-	        System.out.println("Sent reply with " + packet.getLength() + " bytes.");
+		byte[] replyBytes = kdc.dispatch(packet.getData());
 
-		} catch (KerberosException ke) {
-			ke.printStackTrace();
-		}
+        InetAddress address = packet.getAddress();
+        int port = packet.getPort();
+        packet = new DatagramPacket(replyBytes, replyBytes.length, address, port);
+        socket.send(packet);
 	}
 }
 

Mime
View raw message