Skip to content
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

How to just the package of utp ? #120

Open
ggandycong opened this issue Jul 29, 2019 · 2 comments
Open

How to just the package of utp ? #120

ggandycong opened this issue Jul 29, 2019 · 2 comments

Comments

@ggandycong
Copy link

In default, the max package of utp is 1444 size(about 1k),capturing packets with WireShark on linux(as follow).
image

However, I want to enlarge the size of package to 16k ,or 64k. I try to do it, but it have no changes.

#define REORDER_BUFFER_MAX_SIZE 1024* 10
#define OUTGOING_BUFFER_MAX_SIZE 1024 * 10
#define PACKET_SIZE 1435 * 10

So, How to do it? It can send greater package ?

@xavery
Copy link

xavery commented Jul 30, 2019

You do realise that this will get fragmented anyway due to the network interface's MTU, right?

@ggandycong
Copy link
Author

Yes,I know. but I think that it can reduce the amount of package when send in a big file. the size of package is more than the limit of MTU, it will be split when send and merge it when receive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants