-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does this library support streaming / window? #12
Comments
Hmm, I'm not sure what you mean. To my knowledge there is no windowing mechanism in UDP. But to be honest that's not something I've looked at in a very long time. Could you elaborate on what you're looking for? |
@mpetazzoni thank you for the quick response. There are some specifications of TFTP that allow for streaming; the server that replies with a file will simply stream the file, sending data packets without waiting for ACKs. However, so that the client doesn't get overloaded, there is a protocol to negotiate a window of time where a certain amount of packets may be received. See this: https://www.compuphase.com/tftp.htm and search on the page for the header "Unreliable data streaming" |
The question is whether anything like that is implemented in either the server or the client. |
See this RFC specification, https://tools.ietf.org/rfc/rfc7440.txt, and which depends on the option extension: https://tools.ietf.org/html/rfc2347 |
Interesting! Looks like that RFC is more recent than One of the design principles of |
(I may also get bored on day on a flight and decide to do it, but it's hard to say when that would be -- maybe in a couple of months?) |
Hey @iptaylortechnical, I've implemented support for RFC7440. It's available in |
@mpetazzoni wow! Thank you so much! I really appreciate this work! I will take a look at the code and PR any improvements I can find. |
My only gripe with it is that it probably no longer works on Windows now because the server needs to identify the maximum UDP datagram size via I haven't found a good way to determine this programmatically, so if you have any ideas, I'm all ears! |
@mpetazzoni I will give that some thought. A quick question: is there a reason that you use Related, would a PR for that be appreciated? Guessing not as it works as is. It is interesting to note, however, that Let me know whether I've understood the purpose, and whether a PR would be helpful. |
Yup, I wrote this a long time ago when I was not nearly as good in Python (it was a good learning exercise!). |
@mpetazzoni as for the Windows datagram size, it seems windows has the upper bound of 65507 bytes for a datagram packet. That of course says nothing about what the network can handle. But you could just hardcode that in case of a windows system. |
Does this library support the ability to negotiate a window for UDP streaming (ignoring acks)?
The text was updated successfully, but these errors were encountered: