|
From: | Heiko Weiss |
Subject: | [Pnet-developers] [bugs #11980] ilrun crashes using sockets with broken connection (HIGH CRITICAL) |
Date: | Mon, 14 Feb 2005 08:17:07 +0000 |
User-agent: | Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) |
URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11980> Summary: ilrun crashes using sockets with broken connection (HIGH CRITICAL) Project: DotGNU Portable.NET Submitted by: brubbel Submitted on: Mon 14.02.2005 um 08:17 Category: None Severity: 5 - Average Item Group: None Status: None Privacy: Public Assigned to: None Open/Closed: Open _______________________________________________________ Details: 1. I'm using a client socket connecting to a server. 2. After connecting creating an NetworkStream from the client. 3. Sending data to the server via NetWorkStream. 4. If server shuts down the connection (server ist stopped) I get an exception -> ok. 5. Now I call Socket.Connected -> says still connected (not ok). 6. Next time trying to send data to the socket ilrun crashes. Codesnips: sock = new Socket( ... ); sock.Connect( IPEndPoint(...) ); stream = new NetworkStream( sock ); if( sock.Connected ) stream.Write( ... ); // ok not stop the server if( sock.Connected ) // returns true stream.write( ... ); // throws exception -> ok if( sock.Connected ) // still returns true !!! -> not ok stream.write( ... ); // ilrun crashes *********************** ilrun crashes !!!!! _______________________________________________________ This item URL is: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11980> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |