[squid-users] Re:RE: RE: RE: [squid-users] Puzzled at the ports squid is using. :-(

From: <maer727@dont-contact.us>
Date: Mon, 13 May 2002 20:49:45 +0800 (CST)

Thanks, Rob pal!

In my limited experience, a TCP process will listen on a specific port,
maybe 80, and then when a request comes, it will create another port for a
TCP connection.

My question is what is the port squid is using to listen. Simon told me
squid is using port 80 to do the listen task and use a random port(>1023)
to server for each TCP connection. Do you agree with him?

Best regards,
George Ma

----- Original Message -----
From: Robert Collins
To: maer727@sohu.com
Cc: squid-users@squid-cache.org
Subject: RE: RE: RE: [squid-users] Puzzled at the ports squid is using. :-(
Sent: Mon May 13 20:33:15 CST 2002

>
>
> > -----Original Message-----
> > From: maer727@sohu.com [mailto:maer727@sohu.com]
> > Sent: Monday, May 13, 2002 10:28 PM
> > To: Robert Collins
> > Cc: squid-users@squid-cache.org
> > Subject: Re:RE: RE: [squid-users] Puzzled at the ports squid
> > is using. :-(
> >
> >
> > Thanks, Rob pal!
> >
> > Still a question unawered. :-)
> >
> > How to know which port squid is using as iniators port?
> > How to know which port squid is using as recievers port?
> >
> > Are they random number or specific number?
>
> The machine making the connection will usually assign a semi-random
> port. The machine being connected to (the reciever) will be listening on
> a pre-defined port. You can't know in advance the iniators port unless
> the software deliberately chooses it (and squid doesn't).
>
> Seriously, you need to go and do some reading on TCP and how it works.
> The questions you are asking at the moment are all answered in such
> reading material.
>
> Rob
Received on Mon May 13 2002 - 06:49:53 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:08:05 MST