Re: too many IMAP ESTABLISH
| From: | php | Date: | Fri, 08 Dec 2000 14:37:52 +0000 |
| Subject: | Re: too many IMAP ESTABLISH | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-29351@lists.php.net to get a copy of this message | ||
I am not using imap_close() at the end of each page.
The TCP connection between IMAP server and Web server ,
as you said that just float around for a while.
The number of connection is less than 10 in normal.
Everything is normal and the service is regular when the httpd just be
started.
It's OK in a periold of time. But.
An unexpected situation occurs!
The httpd forks itself many suddenly.
So, the connection grows up very soon in a few seconds.
Thousands of connections appear, and never disconnect.
"Mark Lipscombe" <mark@itgarp.com> wrote in message
news:JGEGKDIOHDPHHJCDFBBDIEINCLAA.mark@itgarp.com...
> I presume you're talking about there being a lot of IMAP connections
> relative to the number of users using your webmail. If that's not the
case,
> let me know :)
>
> Each page a user visits that retrieves details from the IMAP server will
> open a connection to the IMAP server. You need to make sure you're
calling
> imap_close() at the end of each page, otherwise the sockets may just float
> around for a while.
>
> After having done that, unless the number of connections are causing you
> some sort of problem, don't worry.
>
> Cheers,
> Mark
>
> > -----Original Message-----
> > From: nautilus [mailto:nautilus@titan.seed.net.tw]
> > Sent: Friday, 8 December 2000 9:15 PM
> > To: php-general@lists.php.net
> > Subject: [PHP] too many IMAP ESTABLISH
> >
> >
> > There was a problem of too many IMAP ESTABLISH.
> >
> > I use PHP and IMAP to provide webmail service. But,
> > There are more and more established connections
> > between the web server and the mail server.
> >
> > hpptd <-----> imapd 143
> >
> > I constructed a web server using
> > apache_1.3.14, php-4.0.3pl1, and imap-2000.
> >
> > This problem is the same even though
> > I used imap-4.6 instead.
> >
> > Ths FAQ on http://www.php.net metions
> > "3.3. Where can I get libraries needed to compile some of the
> > optional PHP extensions?
> > ==> IMAP* (Win/Unix):
> > ftp://ftp.cac.washington.edu/imap/old/imap-4.5.tar.Z
> > ".
> >
> > Could it be said that only the imap-4.5 is available.
> >
> > Thanks!
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>