473,549 Members | 2,733 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Weird Socket issues

Hi all

I am running a standard client server socket type thing and I have started
getting this exception

Exception: System.IO.IOExc eption
Message: Unable to read data from the transport connection.
Source: System
at System.Net.Sock ets.NetworkStre am.Read(Byte[] buffer, Int32 offset,
Int32 size)
at System.IO.Strea mReader.ReadBuf fer()
at System.IO.Strea mReader.ReadLin e()
at Opal.Requester. Locations.Socke tLocation.ReadM essages(StreamR eader sr)
at Opal.Requester. Locations.Socke tLocation.Clien tConnected(Obje ct
tcpClient)

Nested Exception

Exception: System.Net.Sock ets.SocketExcep tion
Message: An existing connection was forcibly closed by the remote host
Source: System
at System.Net.Sock ets.Socket.Rece ive(Byte[] buffer, Int32 offset, Int32
size, SocketFlags socketFlags)
at System.Net.Sock ets.NetworkStre am.Read(Byte[] buffer, Int32 offset,
Int32 size)

Anyone know what cause this? I am confused.

Ian
--
"Life should NOT be a journey to the grave
with the intention of arriving safely in an
attractive and well preserved body,
but rather to skid in sideways,
chocolate in one hand, beer in the other,
body thoroughly used up,
totally worn out and screaming
WOO HOO what a ride!"
Nov 16 '05 #1
2 1688
Ian,

Is it possible that the server you are connecting to is dropping the
connection? It would seem that is the case, from the message in the inner
exception.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Ian Frawley" <ch****@away.co m> wrote in message
news:RD******** *******@news-1.opaltelecom.n et...
Hi all

I am running a standard client server socket type thing and I have started
getting this exception

Exception: System.IO.IOExc eption
Message: Unable to read data from the transport connection.
Source: System
at System.Net.Sock ets.NetworkStre am.Read(Byte[] buffer, Int32 offset,
Int32 size)
at System.IO.Strea mReader.ReadBuf fer()
at System.IO.Strea mReader.ReadLin e()
at Opal.Requester. Locations.Socke tLocation.ReadM essages(StreamR eader sr)
at Opal.Requester. Locations.Socke tLocation.Clien tConnected(Obje ct
tcpClient)

Nested Exception

Exception: System.Net.Sock ets.SocketExcep tion
Message: An existing connection was forcibly closed by the remote host
Source: System
at System.Net.Sock ets.Socket.Rece ive(Byte[] buffer, Int32 offset, Int32
size, SocketFlags socketFlags)
at System.Net.Sock ets.NetworkStre am.Read(Byte[] buffer, Int32 offset,
Int32 size)

Anyone know what cause this? I am confused.

Ian
--
"Life should NOT be a journey to the grave
with the intention of arriving safely in an
attractive and well preserved body,
but rather to skid in sideways,
chocolate in one hand, beer in the other,
body thoroughly used up,
totally worn out and screaming
WOO HOO what a ride!"

Nov 16 '05 #2

"Nicholas Paldino [.NET/C# MVP]" wrote in message

Yes it seems that, that was the case.

Thanks

Ian
Ian,

Is it possible that the server you are connecting to is dropping the
connection? It would seem that is the case, from the message in the inner
exception.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Ian Frawley" <ch****@away.co m> wrote in message
news:RD******** *******@news-1.opaltelecom.n et...
Hi all

I am running a standard client server socket type thing and I have started getting this exception

Exception: System.IO.IOExc eption
Message: Unable to read data from the transport connection.
Source: System
at System.Net.Sock ets.NetworkStre am.Read(Byte[] buffer, Int32 offset,
Int32 size)
at System.IO.Strea mReader.ReadBuf fer()
at System.IO.Strea mReader.ReadLin e()
at Opal.Requester. Locations.Socke tLocation.ReadM essages(StreamR eader sr) at Opal.Requester. Locations.Socke tLocation.Clien tConnected(Obje ct
tcpClient)

Nested Exception

Exception: System.Net.Sock ets.SocketExcep tion
Message: An existing connection was forcibly closed by the remote host
Source: System
at System.Net.Sock ets.Socket.Rece ive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sock ets.NetworkStre am.Read(Byte[] buffer, Int32 offset,
Int32 size)

Anyone know what cause this? I am confused.

Ian
--
"Life should NOT be a journey to the grave
with the intention of arriving safely in an
attractive and well preserved body,
but rather to skid in sideways,
chocolate in one hand, beer in the other,
body thoroughly used up,
totally worn out and screaming
WOO HOO what a ride!"


Nov 16 '05 #3

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

Similar topics

3
1905
by: Gonçalo Rodrigues | last post by:
Hi, I use the unittest module for testing a given module's functionality, by lumping several test classes and then at the end a simple if __name__ == "__main__": unittest.main() In one of these, I get, at a DOS prompt the following weird result:
10
6529
by: Sheila King | last post by:
I'm doing DNS lookups on common spam blacklists (such as SpamCop..and others) in an email filtering script. Sometimes, because the DNS server that is resolving the looksup can go down, it is important to make sure that the socket doesn't just hang there waiting for a response. After a recent system upgrade to Python 2.4.1 (from 2.2.2) I...
1
3066
by: Rolln_Thndr | last post by:
I'm vey new to network programing and have a few rather fundemental questions. I'm creating a very basic UDP proxy server and having a few issues regarding the sockets. Is it possible to change the properties of a socket WITHOUT closing it and creating a new one? Basically, I need to change the port of a bound socket, but the only way I...
1
829
by: mrpolitics | last post by:
So I'm working with PureIRCD (http://sourceforge.net/projects/pure-ircd) and everything was fine untill yesterday when the server crashed. So I did a cold restart and staretd the server back up now it's throwing this stream of errors right away. DOes anyone have any idea what they mean. I havn't changed the source at all since it was...
4
1739
by: Droopy | last post by:
Hi, I wrote a program that runs on about 20 machines. Each machine is connected with a socket on all other machines. Each socket has its own handling thread. The main reading loop is using Poll () with a 100ms timeout and Receive () to check incoming data. Send () is used to send data. There are exchanging many small messages (most are...
0
4706
by: phplasma | last post by:
Hey, I am currently attempting to implement a multi-threaded C# socket, using SSL (.pem file/certification/private key combo) server using Visual Studio C# Express. I have successfully made the client application establish a connection, and send data, which appears in plain, de-crypted text on the server - this works.
1
6348
by: Jay | last post by:
I have a client app sending messages over the socket on a certain port. In the client app: I do this for every message I need to send: 1. Create a socket and connect. 2. Send message 3. Close socket. The Listener requires that the client keep the socket connected while sending messages..which is every 20-30 seconds. My question is: Can...
9
20612
by: Hao | last post by:
We are doing very intensive network communication. We collect data from thousands of electric devices every minutes. The devices understand both socket and web service. They are either embeded linux based system or Windows based servers. WCF, as I understand, has overhead vs. native socket ..Net programming. Should I continue to use socket...
2
18331
by: kodart | last post by:
Introduction Performance is the main concern to most server application developers. That’s why many of them anticipate using .NET platform to develop high performance server application regardless of the security features it provides. Microsoft Windows provides a high performance model that uses I/O completion port (IOCP) to process network...
0
7524
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
1
7475
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7812
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5372
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5089
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3501
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3483
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1944
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
766
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.