Unix Programming - Connetion reset by peers (Socket Programming) in a Clinet Server Model ????

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > May 2005 > Connetion reset by peers (Socket Programming) in a Clinet Server Model ????





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Connetion reset by peers (Socket Programming) in a Clinet Server Model ????
girishdomain@gmail.com

2005-05-17, 7:48 am

Hi All

I have made a concurrent client-server model in c++.
when i try to send a large file into packets to clinet side.
After receiving some packets to clinet side, connection is reset.
May be because of burst of packets at once at clinet side.

can any one help me to come out from this problem
plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
zzzzzzzzz

thanks
Girish Kumar

Barry Margolin

2005-05-18, 2:49 am

In article <1116323223.791378.90140@o13g2000cwo.googlegroups.com>,
girishdomain@gmail.com wrote:

> Hi All
>
> I have made a concurrent client-server model in c++.
> when i try to send a large file into packets to clinet side.
> After receiving some packets to clinet side, connection is reset.
> May be because of burst of packets at once at clinet side.
>
> can any one help me to come out from this problem
> plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
zzzzzzzzz


There are a number of possible reasons, and it's impossible to guess
without seeing the code.

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
girishdomain@gmail.com

2005-05-18, 7:53 am

It may because pakcets (different fragments of a file ) comes in burst
at client side
from the server.
because when i make a delay of one second between each two packets it
works fine
but is it ok to tranfer a file of of 100 kb (100 packets) in 100
seconds.
how can i improve ...
please suggest me or should i send u the source code ..

waiting for reply

Barry Margolin

2005-05-18, 7:53 am

In article <1116408218.617167.254890@o13g2000cwo.googlegroups.com>,
girishdomain@gmail.com wrote:

> It may because pakcets (different fragments of a file ) comes in burst
> at client side
> from the server.
> because when i make a delay of one second between each two packets it
> works fine
> but is it ok to tranfer a file of of 100 kb (100 packets) in 100
> seconds.
> how can i improve ...
> please suggest me or should i send u the source code ..
>
> waiting for reply


Unless there's something wrong with your TCP/IP stack, timing changes
like this should have no effect on a TCP connection.

Post your source code.

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
girishdomain@gmail.com

2005-05-19, 2:48 am

Can you send me your mail id plz
So that i can send you tar file of my source code

Barry Margolin

2005-05-20, 2:48 am

In article <1116482761.754221.10840@g43g2000cwa.googlegroups.com>,
girishdomain@gmail.com wrote:

> Can you send me your mail id plz
> So that i can send you tar file of my source code


My address is right there in my From: line and my signature. But I
don't want a tar file of your source code.

You should reduce your code to a small example that demonstrates the
problem, and post it in this thread so that we can all have a chance to
critique it.

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com