daminetreg / lib-tftp-server

TFTP server implemetation in C++ : Boost.ASIO + Boost.Spirit Based, header only and trivial.
Boost Software License 1.0
18 stars 4 forks source link

No concurrent connections possible from same ip-address #1

Open dan-42 opened 9 years ago

dan-42 commented 9 years ago

When making two connections from the same ip-address then the first connection will be terminated

daminetreg commented 9 years ago

Thanks, that's right I have no session management. It's really non-pretty asio-spaghetti for the server.hpp part. I think I'll refactor it with a state machine and build up a session object, to be able to multithread the sessions.

What you will still not get is getting it work by requesting from the same host 2 files at the same time, as they use the same udp identifier. I don't think I can force the receive port to be the same between requests.