|
List Info
Thread: Port not free problem
|
|
| Port not free problem |

|
2007-06-28 02:26:53 |
|
Hi
I am using cherrypy 2.2.0(beta). I am getting the following problem.
If run my application first time. It works fine. Once again I rerun the application without exiting the first one.
I got the following error.
================================================================== Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/cherrypy/_cpserver.py", line 79, in _start
self.start_http_server() File "/usr/local/lib/python2.4/site-packages/cherrypy/_cpserver.py", line 99, in start_http_server wait_for_free_port(host, port) File "/usr/local/lib/python2.4/site-packages/cherrypy/_cpserver.py", line 252, in wait_for_free_port
raise cherrypy.NotReady("Port not free.") cherrypy._cperror.NotReady: Port not free.
===========================================================================
If iam trying to access the page through browser. I got connection timed out.
I want to run cp multiple times without exiting the previous process. How can i solve that?
is there any other way.
- Mahabub Basha.S
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cherrypy-users" group. To post to this group, send email to cherrypy-users googlegroups.com To unsubscribe from this group, send email to cherrypy-users-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en -~----------~----~----~----~------~----~------~--~---
|
| Re: Port not free problem |

|
2007-06-28 02:35:07 |
my guess is that you will have to pick a new free port every
time you
want to start a new cherrypy.
i believe you can set the port programmaticaly.
but it will probably get messy very quickly.
EuGeNe -- http://www.3kwa.com
On 6/28/07, Mahabub Basha <mahabubbasha gmail.com> wrote:
> Hi
>
> I am using cherrypy 2.2.0(beta). I am getting the
following problem.
>
> If run my application first time. It works fine. Once
again I rerun the
> application without exiting the first one.
>
> I got the following error.
>
>
============================================================
======
> Traceback (most recent call last):
> File
>
"/usr/local/lib/python2.4/site-packages/cherrypy/_cpser
ver.py",
> line 79, in _start
> self.start_http_server()
> File
>
"/usr/local/lib/python2.4/site-packages/cherrypy/_cpser
ver.py",
> line 99, in start_http_server
> wait_for_free_port(host, port)
> File
>
"/usr/local/lib/python2.4/site-packages/cherrypy/_cpser
ver.py",
> line 252, in wait_for_free_port
> raise cherrypy.NotReady("Port not
free.")
> cherrypy._cperror.NotReady: Port not free.
>
>
============================================================
===============
>
> If iam trying to access the page through browser. I got
connection timed
> out.
>
> I want to run cp multiple times without exiting the
previous process. How
> can i solve that?
>
> is there any other way.
>
> - Mahabub Basha.S
>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Port not free problem |

|
2007-06-28 03:01:31 |
|
Hi
Thanks Eugene. I have specified the server port in my conf file
server.socket_port: 80
I understand what you have said, But i have to listen on same port 80 whenever a start a new cp.
Before start the new cp, I want to stop the listen port on 80. and restarted on the same port.
is it possible in cp. I am new one. can u explain me how to do that?
please give is any example reference
- Mahabub Basha.S
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cherrypy-users" group. To post to this group, send email to cherrypy-users googlegroups.com To unsubscribe from this group, send email to cherrypy-users-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en -~----------~----~----~----~------~----~------~--~---
|
| Re: Port not free problem |

|
2007-06-28 03:06:03 |
On 6/28/07, Mahabub Basha <mahabubbasha gmail.com> wrote:
> is it possible in cp. I am new one. can u explain me
how to do that?
I am newbie too so I am afraid that's all I can do for you
... for now!
I don't see how you can have several applications listening
on the
same port though (don't think it is possible CP or not).
Cheers,
EuGeNe -- http://www.3kwa.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
[1-4]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|