Closed vjuagar closed 2 years ago
Considering that your code will block on server.listen(), why do you expect the rest of the code to be run at all?
The stop() method is meant to be called by another thread. Or just break out of listen() via a signal and it will be stopped.
Mike
On 2021-11-04 7:29 a.m., vjuagar wrote:
Hi, i have a problem to end the sesion on the server.
My code is:
|import tftpy import time server = tftpy.TftpServer('C:/backup') server.listen('0.0.0.0', 69) time.sleep(5) server.stop(True)|
the server start correctly, but i can't stop
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/msoulier/tftpy/issues/132, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAADRQVJCLMB5AJASFK6S7TUKJVCNANCNFSM5HLGU7OQ.
Hi, i have a problem to end the sesion on the server.
My code is:
import tftpy
import time
server = tftpy.TftpServer('C:/backup')
server.listen('0.0.0.0', 69)
time.sleep(5)
server.stop(True)
the server start correctly, but i can't stop