473,467 Members | 1,554 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Incomplete Socket data at destination

I've setup a simple stream_socket_client and socket server scripts.
If I run the server script on a different machine than the client and
send data, not all the data reaches the server. If I run the server
and client on the same machine there is no problem. If I play around
with the size of the chunks I'm sending I get slightly different
results, but it never resolves the problem entirely. The error
message I see on the server side is "Warning: socket_read(): unable to
read from socket [104]: Connection reset by peer"

I'd normally consider this a network issue, but I've seen this work
recently from a PHP 4.3.x box as the client and a server somewhere
else on the Internet.

Are there factors that impact how much data stream_socket_client can
send? I've checked my php.ini's to make sure there is plenty of
memory available and timeouts aren't too short.

Any thoughts? Thanks
Aug 14 '08 #1
1 2070
On 2008-08-14, Gozer <gc*********@gmail.comwrote:
I've setup a simple stream_socket_client and socket server scripts.
If I run the server script on a different machine than the client and
send data, not all the data reaches the server. If I run the server
and client on the same machine there is no problem. If I play around
with the size of the chunks I'm sending I get slightly different
results, but it never resolves the problem entirely. The error
message I see on the server side is "Warning: socket_read(): unable to
read from socket [104]: Connection reset by peer"

I'd normally consider this a network issue, but I've seen this work
recently from a PHP 4.3.x box as the client and a server somewhere
else on the Internet.

Are there factors that impact how much data stream_socket_client can
send? I've checked my php.ini's to make sure there is plenty of
memory available and timeouts aren't too short.

Any thoughts? Thanks
How much are you trying to send? There are limits in any network,
ones imposed by the cabling, any routers or switches along the way,
and the network interfaces involved.

These limits are generally *much* higher for the loopback device.

--
Andrew Poelstra ap*******@wpsoftware.com
To email me, use the above email addresss with .com set to .net
Aug 15 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: SWJust | last post by:
Hi... is it possible to send data from a socket to at physical address (MAC) on f.x another PC or Router ??? I have a IP header with information about another client, and this cannot be altered,...
4
by: Just | last post by:
Hi everybody I was wondering if it is possible to use SendTo to send a whole IP package including header to another IP than specified in the package. Say I have a complete package and in it...
5
by: Tiger | last post by:
Hi, I try to send a packet with raw socket but I have an error with ethereal sniffer on windows xp. I can't find any solution on the net. :( Could anybody help with that problem? my code :...
1
by: PAzevedo | last post by:
Hi there. I called Socket.Select() on a group of sockets, and got one that was writable. On that socket i called Send() and sent a buffer of size smaller then SendBufferSize that way Send()...
1
by: cyberco | last post by:
Using: .Net Compact Framework 2, Windows Mobile 5 (Pocket PC) I'm trying to upload a large binary file in chuncks over a socket (as a multipart mime message). This is how I'm trying to accomplish...
6
by: Sean | last post by:
Hi Everyone, My apologies for a somewhat dump question but I am really stuck. I have been working on this code for two days straight I am dont know what is wrong with it. when I run the code, All...
3
by: Valli | last post by:
Hi, I want to send ascii data over the tcp socket in VB.NET. When the data reaches the destination, the special characters in the messages are recived as '?'. I meant the special characters...
0
by: george585 | last post by:
Hello! I am new to network programming, and understand just basics. Using some sample code, and having read documentation, I managed to create a simple app in C# and VB.NET. The application is...
1
by: ElvisRS | last post by:
Hi, I'm writing a simple udp client using sockets. My code looks like this: initServer2 = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.