[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] [bug #18785] Sockets block forever
From: |
Nick Lee |
Subject: |
[Pnet-developers] [bug #18785] Sockets block forever |
Date: |
Mon, 15 Jan 2007 11:00:57 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1 |
URL:
<http://savannah.gnu.org/bugs/?18785>
Summary: Sockets block forever
Project: DotGNU Portable.NET
Submitted by: nick_lee
Submitted on: Monday 15/01/07 at 11:00
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
There doesn't seem to be a way to stop sockets blocking indefinitely.
1. Setting the ReceiveTimeout option on the socket has no effect - when you
read it back it is still 0, which means "infinite timeout". Looking at the
source code, there is a message saying that timeouts cannot be set according
to the RFCs (which I'm sure isn't true - all other implementations of sockets
on all platforms and all application frameworks support setting socket
timeouts - besides, even if this was the case, the timeout wouldn't be set to
infinity!).
2. Setting Blocking to false doesn't stop the socket blocking (change
"s.Blocking = true;" in attached code to "s.Blocking = false;".
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Monday 15/01/07 at 11:00 Name: socket.cs Size: 1kB By: nick_lee
<http://savannah.gnu.org/bugs/download.php?file_id=11757>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?18785>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pnet-developers] [bug #18785] Sockets block forever,
Nick Lee <=