Welcome Guest Search | Active Topics | Members | Log In | Register

Package Size Problems - MTU? Options
sreisen
Posted: Wednesday, October 14, 2009 10:02:17 AM
Rank: Newbie
Groups: Member

Joined: 10/13/2009
Posts: 2
Points: 6
Hello!
I use the XF Server to receive serialized data and to write them to a database.

I want to send data of size about 10.000bytes to the server.
While i am sending data until a size of about 1460 to the server, it works really fine!
But above 1460, so for instance i send 1490, the Deserialization fails!
Then i tried to see what packages the fragment with ping -f -l 1471 80.40.194.93 it fragments the packages!
So.. how do i handle fragmented packages with xf server?!
Does this xf server or should i handle this on my own?

Thank you for your help!
Regards,
Stefan

My server code looks like this: (OnDataReceived fires the event which will deserialize the data)

_listener = _network.AcceptAsync(new IPEndPoint(IPAddress.Any, MyConst.ServerPort), ProcessClient);

private void ProcessClient(IConnection connection)
{
byte[] buffer = new byte[10 << 14];
connection.ReadAsync(buffer,

(length, ignore) =>
{
if (length == 0) return;

try
{
OnDataReceived(connection, buffer);
}
catch (Exception ex)
{
Log.Error(ex);
}
},

(error, ignore) =>
{
Log.Error(error);
},

null);
}
admin
Posted: Wednesday, October 14, 2009 10:43:06 AM
Rank: Administration
Groups: Administration

Joined: 2/15/2008
Posts: 130
Points: 835
sreisen
Posted: Wednesday, October 14, 2009 11:08:27 AM
Rank: Newbie
Groups: Member

Joined: 10/13/2009
Posts: 2
Points: 6
ok thank you for your quick response!

i can't see the other topics in this forum :(
but with the link it works..

regards
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.6 (NET v2.0) - 11/14/2007
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.
This page was generated in 0.086 seconds.
10 queries (0.039 seconds, 45.35%).

yaf_pageload: 0.009
yaf_topic_info: 0.016
yaf_forum_list: 0.002
yaf_forum_listpath: 0.001
yaf_forum_listpath: 0.001
yaf_post_list: 0.002
yaf_usergroup_list: 0.001
yaf_usergroup_list: 0.001
yaf_usergroup_list: 0.001
yaf_active_listtopic: 0.005