Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Sockets! Controlling Receiver part

by flexvault (Parson)
on Jun 23, 2013 at 16:08 UTC ( #1040332=note: print w/ replies, xml ) Need Help??


in reply to Sockets! Controlling Receiver part

ali_kerem,

Since you don't show the 'open', I'll guess your using 'UDP'. If so, you are responsible for putting the packets back together. If your origin packet is 10K in size, each router you pass through will break up the packet based upon it's 'maximum packet size', etc.

So use 'TCP' and let the system dis/assemble the raw packets so you can concentrate on the Perl script.

If you are using 'TCP' now, you may have hardware problems.

Good Luck...Ed

"Well done is better than well said." - Benjamin Franklin


Comment on Re: Sockets! Controlling Receiver part
Re^2: Sockets! Controlling Receiver part
by ali_kerem (Acolyte) on Jun 24, 2013 at 05:20 UTC

    Thanks for the reply but it's TCP and I updated the code part.I changed 4096 to 8192 and now it works longer but still, it breaks after longer responses.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1040332]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2014-09-22 12:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (191 votes), past polls