Re: [Dovecot] Feature Request "doveadm who" for all sockets or limits

2014-02-14 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 12 Feb 2014, LuKreme wrote:


On 12 Feb 2014, at 09:12 , Steffen Kaiser  wrote:

Some in-house program connected to auth-userdb, but did not closed the 
connection,


Is there a way to set a timeout on the open socket? Is it a socket?

Would lsof show the connections? (assuming your kernel is compatible with lsof, 
mine is not so I can't check).


I my case, it's an Unix socket: /var/run/dovecot/auth-userdb
lsof shows them as hex numbers - without end point. That way I found 
problematic program, because I had the chance to look, when the problem 
popped up.


- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBUv3Sl3D1/YhP6VMHAQK7TQf+Lx5iE9VEfqcQ5iqzKmp1ZP2nmbZURK26
559JIzmlWWiVXYcR4aCeCv2YXJLTaIyuTBmKjaPeOq8xnfmuoXnIb+t+5pkwScp1
jUaSkKD0fhTXxOCdwchbH9aDbTmcDsZi+ZHsaW367WgDD9ZRuRGlPQ6P4bZb6hv1
Z17wrIducYgHw+DCmpMGBDIWQg7EPaVE+RZWp8FatppeYSsaRtk2J+dJzgvQZ8AR
MpPUjiXgGgF4uLyHfwALNCN+12W9zez1koSf6LOuB+Sgkgil2ha1ScSWeFgCkyGt
btD08DO8dMK7COALVjhiPXDviPYhaJ57gP2GTAvGpVl0xgXHHi3Bjg==
=K2vC
-END PGP SIGNATURE-


Re: [Dovecot] Feature Request "doveadm who" for all sockets or limits

2014-02-12 Thread LuKreme
On 12 Feb 2014, at 09:12 , Steffen Kaiser  wrote:
> Some in-house program connected to auth-userdb, but did not closed the 
> connection, 

Is there a way to set a timeout on the open socket? Is it a socket?

Would lsof show the connections? (assuming your kernel is compatible with lsof, 
mine is not so I can't check).

> Please add some way to query the current useage / fill of the limits. Maybe 
> something like "doveadm who" for all sockets of Dovecot.

That does seem like a useful feature to have.

-- 
"Part of the inhumanity of the computer is that, once it is competently
programmed and working smoothly, it is completely honest." - Isaac
Asimov


[Dovecot] Feature Request "doveadm who" for all sockets or limits

2014-02-12 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, 10 Feb 2014, Steffen Kaiser wrote:



imap: Error: Disconnected from auth server, aborting (client-pid=2296
client-id=17278)
imap-login: Info: Internal login failure (pid=2296 id=17278) (internal
failure, 1 successful auths)  .


for the archive:

I have found the client causing this error.
Some in-house program connected to auth-userdb, but did not closed the 
connection, rather it opened another connection to query the next user. 
Most of the time, the number of users was small, so nothing bad happened. 
But now and then up to 3000 users are to query. That broke the system.


However, my feature request remains:
Please add some way to query the current useage / fill of the limits. 
Maybe something like "doveadm who" for all sockets of Dovecot.


Kind regards,

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBUvudhnD1/YhP6VMHAQID8gf/RP8Xmkd8SL22hUgTUojSEiyCyR29n/tt
0hjAEubtuMoTVPfGCz6hFyNOLqNowmJYiLsQarFyBX/peXm6yiGLMe4GJoa6N4Np
m0+bRUrBhh+IaQzw+PPfzVAeybQOFGtQ3xi/TXnM0qkoFrryZtLPaeqZeA0xMsDU
ObvINE2E+BHrTbBR/MCTuukpsmDSvORA7ixcIbXk//d5Q9+Mn/s7GIjQlHCAoC2U
2ER8H0Oe/VwDCBEUhJ0PFXMBSp2NEP9qU+R9hWtKG7uAfDCgN+rU+2Vlzi1ediWi
marcQJziO0MlOetrn+Vpqc7I4w0QNV1r9OImsvt6Ox/5d2iqVn8asA==
=ixQh
-END PGP SIGNATURE-