[horde] Activesync not closing connections
Tom Seeley
horde at tomseeley.co.uk
Mon Mar 18 09:08:24 UTC 2013
Hi,
I had been using Activesync relatively successfully for several weeks,
but recently (I'm afraid I'm not sure exactly when), I seem to have
sprung some sort of leak.
The observed behaviour is that Dovecot locks me out of my account
because I have exceeded "mail_max_userip_connections", which is set to
10 by default. Dovecot isn't lying, what appears to be happening is
that my AS client (Samsung galaxy s2) is making requests that aren't
closing. Very quickly after starting apache I see something like this:
# netstat -an |grep 192.168.0.221
tcp 0 52 10.0.0.1:22 192.168.0.221:58347
ESTABLISHED
tcp 24 0 ::ffff:10.0.0.1:443
::ffff:192.168.0.221:38544 CLOSE_WAIT
tcp 24 0 ::ffff:10.0.0.1:443
::ffff:192.168.0.221:35204 CLOSE_WAIT
tcp 0 0 ::ffff:10.0.0.1:443
::ffff:192.168.0.221:58502 ESTABLISHED
tcp 24 0 ::ffff:10.0.0.1:443
::ffff:192.168.0.221:55443 CLOSE_WAIT
tcp 24 0 ::ffff:10.0.0.1:443
::ffff:192.168.0.221:38506 CLOSE_WAIT
tcp 24 0 ::ffff:10.0.0.1:443
::ffff:192.168.0.221:42254 CLOSE_WAIT
tcp 24 0 ::ffff:10.0.0.1:443
::ffff:192.168.0.221:42254 CLOSE_WAIT
tcp 24 0 ::ffff:10.0.0.1:443
::ffff:192.168.0.221:42254 CLOSE_WAIT
tcp 24 0 ::ffff:10.0.0.1:443
::ffff:192.168.0.221:42254 CLOSE_WAIT
tcp 24 0 ::ffff:10.0.0.1:443
::ffff:192.168.0.221:42254 CLOSE_WAIT
After the above no more logins into horde are possible to my account+IP.
My understanding of TCP would lead me to suggest that the client has
requested a close of the connection and the server has yet to release
the socket.
As a workaround I have resorted to changing my phone to a 5 min sync
(ie turning off push) to maintain functionality.
Cheers,
Tom.
Version information:
# pear list -c horde
Installed packages, channel pear.horde.org:
===========================================
Package Version State
Horde_ActiveSync 2.2.0 stable
Horde_Alarm 2.0.4 stable
Horde_Argv 2.0.4 stable
Horde_Auth 2.0.4 stable
Horde_Autoloader 2.0.1 stable
Horde_Browser 2.0.3 stable
Horde_Cache 2.0.3 stable
Horde_Cli 2.0.3 stable
Horde_Compress 2.0.3 stable
Horde_Compress_Fast 1.0.1 stable
Horde_Constraint 2.0.1 stable
Horde_Controller 2.0.1 stable
Horde_Core 2.4.3 stable
Horde_Crypt 2.1.2 stable
Horde_Crypt_Blowfish 1.0.1 stable
Horde_Data 2.0.3 stable
Horde_Date 2.0.4 stable
Horde_Date_Parser 2.0.1 stable
Horde_Db 2.0.2 stable
Horde_Editor 2.0.3 stable
Horde_ElasticSearch 1.0.1 stable
Horde_Exception 2.0.3 stable
Horde_Feed 2.0.1 stable
Horde_Form 2.0.3 stable
Horde_Group 2.0.2 stable
Horde_History 2.0.2 stable
Horde_Http 2.0.1 stable
Horde_Icalendar 2.0.3 stable
Horde_Image 2.0.3 stable
Horde_Imap_Client 2.6.0 stable
Horde_Imsp 2.0.3 stable
Horde_Injector 2.0.1 stable
Horde_Itip 2.0.4 stable
Horde_Kolab_Format 2.0.2 stable
Horde_Kolab_Server 2.0.1 stable
Horde_Kolab_Session 2.0.1 stable
Horde_Kolab_Storage 2.0.3 stable
Horde_ListHeaders 1.0.1 stable
Horde_Lock 2.0.2 stable
Horde_Log 2.0.1 stable
Horde_LoginTasks 2.0.2 stable
Horde_Mail 2.0.4 stable
Horde_Memcache 2.0.1 stable
Horde_Mime 2.0.4 stable
Horde_Mime_Viewer 2.0.4 stable
Horde_Nls 2.0.2 stable
Horde_Notification 2.0.1 stable
Horde_Oauth 2.0.1 stable
Horde_Pdf 2.0.3 stable
Horde_Perms 2.1.0 stable
Horde_Prefs 2.3.2 stable
Horde_Rdo 2.0.1 stable
Horde_Role 1.0.1 stable
Horde_Routes 2.0.2 stable
Horde_Rpc 2.0.3 stable
Horde_Scribe 2.0.1 stable
Horde_Secret 2.0.2 stable
Horde_Serialize 2.0.2 stable
Horde_Service_Facebook 2.0.3 stable
Horde_Service_Twitter 2.0.1 stable
Horde_Service_Weather 2.0.3 stable
Horde_SessionHandler 2.0.2 stable
Horde_Share 2.0.3 stable
Horde_SpellChecker 2.1.0 stable
Horde_Stream 1.2.0 stable
Horde_Stream_Filter 2.0.1 stable
Horde_Stream_Wrapper 2.0.1 stable
Horde_Support 2.0.4 stable
Horde_SyncMl 2.0.2 stable
Horde_Template 2.0.1 stable
Horde_Text_Diff 2.0.1 stable
Horde_Text_Filter 2.1.0 stable
Horde_Text_Filter_Csstidy 2.0.1 stable
Horde_Text_Flowed 2.0.1 stable
Horde_Thrift 2.0.1 stable
Horde_Timezone 1.0.2 stable
Horde_Token 2.0.3 stable
Horde_Translation 2.0.1 stable
Horde_Tree 2.0.1 stable
Horde_Url 2.2.0 stable
Horde_Util 2.2.1 stable
Horde_Vfs 2.0.4 stable
Horde_View 2.0.2 stable
Horde_Xml_Element 2.0.1 stable
Horde_Xml_Wbxml 2.0.1 stable
content 2.0.2 stable
horde 5.0.4 stable
imp 6.0.4 stable
ingo 3.0.3 stable
kronolith 4.0.4 stable
mnemo 4.0.3 stable
nag 4.0.2 stable
timeobjects 2.0.3 stable
turba 4.0.3 stable
webmail 5.0.4 stable
More information about the horde
mailing list