Which is the correct way to call findMTU? (General questions)
When can I call findMtu? And when can I set it?
I suppose
- wodVPNcom.connect
- OnConnected
wodVPNcom.FindMTU(10)
- OnFindMTUDone
wodVPNcom.MTU := xx
Thanks
Re: Which is the correct way to call findMTU?
Correct way would be, in my opinion, on IDLE connection (this is very important!) to send packets, starting with 2000 bytes (as example), and send them out. As long as it fails, lower them 50 (to 1000, 500, 250...), and when it starts working increase them 50 .
I think we should add that on wodVPN internally.. Can you wait 2-3 days so auto-mtu-discovery is implemented?
Kreso
Re: Which is the correct way to call findMTU?
Yes, it would be fine!
Thanks a lot
Re: Which is the correct way to call findMTU?
Valter,
can you download wodVPN again and try it out? Call FindMTU (argument can be 0) and wait up to 10 seconds.
Check for FindMTUDone - it should contain MTU. You can decrease it by 4 to put to MTU property.
Kreso
Re: Which is the correct way to call findMTU?
Hi Kreso,
the method seems to work fine. It discover the correct MTU in few seconds ... good job!
PS: I'm sorry to say that unluckely that doesn't resolve my RDP crashes. RDP seems to be stable with an MTU of 1350 (findMTU reports, correctly, 1472), but copy/paste of files works at 40Kb. My ADSL is 2048/256.
PSPS: why -4? wodvpn don't needs 20 bytes?
Re: Which is the correct way to call findMTU?
Oh. You're correct. I got confused. Decrease it by 20 plz. :)
Kreso