bugRemote procedure calls using TCP / UDP with TLV encoding. - Bugs: bug #18784, Sockets block forever

 
 

bug #18784: Sockets block forever

Submitted by:  Nick Lee <nick_lee>
Submitted on:  Mon 15 Jan 2007 10:36:38 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 05 Dec 2013 06:36:04 PM UTC, comment #2:

Posted on wrong project

Sanjay Jaiman <sjaiman>
Project Administrator
Mon 15 Jan 2007 11:02:38 AM UTC, comment #1:

Sorry I posted this to the wrong project and I can't work out how to unsubmit!

Nick Lee <nick_lee>
Mon 15 Jan 2007 10:36:38 AM UTC, original submission:

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;".

Nick Lee <nick_lee>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #11756:  socket.cs added by nick_lee (1KiB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by sjaiman (Posted a comment)
  • -unavailable- added by nick_lee (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 05 Dec 2013 06:36:04 PM UTCsjaimanOpen/ClosedOpen=>Closed
    Mon 15 Jan 2007 10:36:38 AM UTCnick_leeAttached File-=>Added socket.cs, #11756
      Carbon-Copy-=>Added nick_lee

    Back to the top


    Powered by Savane 3.1-cleanup1