Closed GoogleCodeExporter closed 9 years ago
Why are you using threads in the first place? Take a look at
http://groups.google.com/group/pyftpdlib/browse_thread/thread/63a6d9a6425f3560
Original comment by d...@devicenull.org
on 12 Aug 2011 at 7:35
Ah cool, that means I can create one FTP server object, then one FTPS server
object and then I call serve_forever method on the class and it will serve FTP
and FTPS at the same time, am I right? That' cool then.
I will try that next week. Thanks.
Original comment by ronan.de...@gmail.com
on 13 Aug 2011 at 10:02
First, thanks a lot, that worked.
Ok, on version 0.6, the following works :
ftp_server_1 = ftp_server.CreateFTPServer(...)
ftps_server_2 = ftp_server.CreateSecureFTPServer(...)
ftps_server_2.serve_forever()
But calling does not work as serve_forever() does not seem to be a class method:
pyftpdlib.ftp_server.serve_forever()
Is it planned for next version as the enhancement seems quite recent?
Also, 2 totally unrelated notes :
- it would be great to have the ability to have different loggers per server object and not for the whole lib.
- it would also be great to be able to configure that the SIGINT signal should be caught or not by server_forever().
Cheers,
R.
Original comment by ronan.de...@gmail.com
on 16 Aug 2011 at 1:45
I'm unsure of what release it would end up being it, but I'd assume the change
to a class method would come in the next one.
Original comment by d...@devicenull.org
on 17 Aug 2011 at 7:08
> it would also be great to be able to configure that the SIGINT signal should
be
> caught or not by server_forever().
You can do so by specifying the "count" argument:
while 1:
try
server.serve_forever(count=1)
except KeyboardInterrupt:
...
Original comment by g.rodola
on 5 Sep 2011 at 3:25
Closing this out as invalid.
Original comment by g.rodola
on 31 Oct 2011 at 4:55
Original issue reported on code.google.com by
ronan.de...@gmail.com
on 11 Aug 2011 at 1:56