[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xmlblaster] htpasswd auth doesn't close un-auth'd sockets
Brad Clements wrote:
I have switched to using htpasswd authentication.
I am using xmlblaster 1.2 (because 1.3 dies in doSend, see other message)
I am using the socket protocol.
when a connect Qos is received that doesn't properly validate, the connect "call"
fails (as expected), however xmlblaster doesn't close the tcp socket.
Hi Brad,
this is a ugly leak.
How can i reproduce it?
I have tried profiling (with http://www.khelekore.org/jmp/)
java -Xrunjmp:nomethods,dumpdir=/tmp/jmpdump/ org.xmlBlaster.Main
and a client with invalid authentication (with activated htpasswd):
java javaclients.HelloWorldPublish -session.name joe/2
-Security.Client.DefaultPlugin "htpasswd,1.0"
but i can't reproduce any leak (i've also checked with lsof -i).
I'm using the current xmlBlaster svn.
Please provide more details to track this down,
thanks
Marcel
the client reconnects (I guess it's not closing the socket either), and eventually
xmlblaster runs out of file descriptors..
Here's a partial output from lsof
java 27235 bkc 63u IPv6 4905960 TCP server1.strader-ferris.com:7777->10.20.0.9:32926 (ESTABLISHED)
java 27235 bkc 64u IPv6 4905961 TCP server1.strader-ferris.com:7777->10.20.0.9:32927 (ESTABLISHED)
java 27235 bkc 65u IPv6 4905962 TCP server1.strader-ferris.com:7777->10.20.0.9:32928 (ESTABLISHED)
java 27235 bkc 66u IPv6 4905963 TCP server1.strader-ferris.com:7777->10.20.0.9:32929 (ESTABLISHED)
java 27235 bkc 67u IPv6 4905964 TCP server1.strader-ferris.com:7777->10.20.0.9:32930 (ESTABLISHED)
java 27235 bkc 68u IPv6 4905965 TCP server1.strader-ferris.com:7777->10.20.0.9:32931 (ESTABLISHED)
java 27235 bkc 69u IPv6 4905966 TCP server1.strader-ferris.com:7777->10.20.0.9:32932 (ESTABLISHED)
java 27235 bkc 70u IPv6 4905967 TCP server1.strader-ferris.com:7777->10.20.0.9:32933 (ESTABLISHED)
java 27235 bkc 71u IPv6 4905968 TCP server1.strader-ferris.com:7777->10.20.0.9:32934 (ESTABLISHED)
java 27235 bkc 72u IPv6 4905970 TCP server1.strader-ferris.com:7777->10.20.0.9:32935 (ESTABLISHED)
java 27235 bkc 73u IPv6 4905971 TCP server1.strader-ferris.com:7777->10.20.0.9:32937 (ESTABLISHED)
java 27235 bkc 74u IPv6 4905972 TCP server1.strader-ferris.com:7777->10.20.0.9:32938 (ESTABLISHED)
java 27235 bkc 75u IPv6 4905973 TCP server1.strader-ferris.com:7777->10.20.0.9:32939 (ESTABLISHED)
java 27235 bkc 76u IPv6 4905974 TCP server1.strader-ferris.com:7777->10.20.0.9:32940 (ESTABLISHED)
java 27235 bkc 77u IPv6 4905975 TCP server1.strader-ferris.com:7777->10.20.0.9:32941 (ESTABLISHED)
java 27235 bkc 78u IPv6 4905976 TCP server1.strader-ferris.com:7777->10.20.0.9:32942 (ESTABLISHED)
java 27235 bkc 79u IPv6 4905977 TCP server1.strader-ferris.com:7777->10.20.0.9:32943 (ESTABLISHED)
java 27235 bkc 80u IPv6 4905978 TCP server1.strader-ferris.com:7777->10.20.0.9:32944 (ESTABLISHED)
java 27235 bkc 81u IPv6 4905979 TCP server1.strader-ferris.com:7777->10.20.0.9:32945 (ESTABLISHED)
java 27235 bkc 82u IPv6 4905981 TCP server1.strader-ferris.com:7777->10.20.0.9:32947 (ESTABLISHED)
java 27235 bkc 83u IPv6 4905982 TCP server1.strader-ferris.com:7777->10.20.0.9:32948 (ESTABLISHED)
java 27235 bkc 84u IPv6 4905983 TCP server1.strader-ferris.com:7777->10.20.0.9:32949 (ESTABLISHED)
java 27235 bkc 85u IPv6 4905984 TCP server1.strader-ferris.com:7777->10.20.0.9:32950 (ESTABLISHED)
java 27235 bkc 86u IPv6 4905985 TCP server1.strader-ferris.com:7777->10.20.0.9:32952 (ESTABLISHED)
java 27235 bkc 87u IPv6 4905986 TCP server1.strader-ferris.com:7777->10.20.0.9:32953 (ESTABLISHED)
java 27235 bkc 88u IPv6 4905987 TCP server1.strader-ferris.com:7777->10.20.0.9:32954 (ESTABLISHED)
java 27235 bkc 89u IPv6 4905988 TCP server1.strader-ferris.com:7777->10.20.0.9:32955 (ESTABLISHED)
java 27235 bkc 90u IPv6 4905989 TCP server1.strader-ferris.com:7777->10.20.0.9:32956 (ESTABLISHED)
java 27235 bkc 91u IPv6 4905990 TCP server1.strader-ferris.com:7777->10.20.0.9:32958 (ESTABLISHED)
java 27235 bkc 92u IPv6 4905991 TCP server1.strader-ferris.com:7777->10.20.0.9:32959 (ESTABLISHED)
java 27235 bkc 93u IPv6 4905992 TCP server1.strader-ferris.com:7777->10.20.0.9:32960 (ESTABLISHED)
java 27235 bkc 94u IPv6 4905993 TCP server1.strader-ferris.com:7777->10.20.0.9:32962 (ESTABLISHED)
java 27235 bkc 95u IPv6 4905994 TCP server1.strader-ferris.com:7777->10.20.0.9:32963 (ESTABLISHED)
java 27235 bkc 96u IPv6 4905995 TCP server1.strader-ferris.com:7777->10.20.0.9:32964 (ESTABLISHED)
java 27235 bkc 97u IPv6 4905996 TCP server1.strader-ferris.com:7777->10.20.0.9:32965 (ESTABLISHED)
java 27235 bkc 98u IPv6 4905997 TCP server1.strader-ferris.com:7777->10.20.0.9:32966 (ESTABLISHED)
java 27235 bkc 99u IPv6 4905998 TCP server1.strader-ferris.com:7777->10.20.0.9:32967 (ESTABLISHED)
java 27235 bkc 100u IPv6 4905999 TCP server1.strader-ferris.com:7777->10.20.0.9:32969 (ESTABLISHED)
(1000's more of these)