Re: TIME_OUT stays after each squirrelmail login

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/5/08, Martin Gombac <martin@xxxxxx> wrote:
> Hi,
>
> i have never seen this behavior before, but in my current setup when
> people access imap with squirrellmail from first server (WEB), after
> successful login there stays a connection in TIME_WAIT stage on the
> imap server (MAIL). On my other clusters and also with other imap
> clients on this server, no one leaves TIME_WAIT behind.
>
> One can easily leave 100+ opened connections for tracking by clicking
> Check mail periodically thus reaching my limit of connections per IP,
> causing DOS. :-)

On many of its pages, SM does not specifically send a LOGOUT command
to the IMAP server.  The reasons are complicated, although yes,
ideally, this should not be the way it is designed.

You can try to insert something like this at the VERY BOTTOM of all
the /src files (or at least the most frequently used ones such as
redirect.php, webmail.php (not sure if there are any logins in this
page, but maybe there are from plugins), right_main.php,
left_main.php, etc):

sqimap_logout($imapConnection);

If you try this, we'd appreciate hearing if it helped your situation at all.

The other (perhaps better for other reasons) solution is to try using
an IMAP proxy server, such as imapproxy (see SM docs regarding
performance for details and hints about this if you don't know of it
already).  This should limit the number of connections your IMAP
server sees for each user.

> I have:
> squirrelmail-1.4.10a
>   Installed Plugins
>     1. translate
>     2. retrieveuserdata
>     3. spamcop
>     4. filters
>     5. message_details
>     6. delete_move_next
>     7. change_sqlpass
>     8. select_range
> php-5.2.5
> courier-imap-4.0.6
> 2.6.22-hardened gentoo kernel
> every browser
>
>
> Need i to specify more?
>
> Lines look like:
> tcp        0      0 XX.XX.XX.1:143       XX.XX.XX.2:37294
> TIME_WAIT   -
> netstat -apln | grep 143 | grep TIME_WAIT | wc -l
> 86
> And i did click 40+ times on check myself.
> after some time it comes back down:
> netstat -apln | grep 143 | grep TIME_WAIT | wc -l
> 36
>
> Please help me get connection from squirrelmail closed properly.
> Thank you.
>
> Regards,
> M.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux