Results 1 to 10 of 10

Thread: Send Data on NetworkStream Getting Stuck

Hybrid View

  1. #1
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,109

    Re: Send Data on NetworkStream Getting Stuck

    Truly random would be kind of bad. One thing you might consider is adding something to log the arguments that are going to the method before the call. Something as simple as a pair of lists would do. The point would be to try to find a pattern in the random.

    Aside from that, you might look at WriteTimeout. This would be the "Give Up" option, though, but it would give you another test, potentially: If you added a write timeout, then if the timeout occurred, you could re-write the same thing. If it is ALWAYS blocking for certain arguments (which the failure of the second line suggests is NOT the case), then you might be able to identify the arguments that cause the blockage. If it really is random, then a second try would cause the exact same arguments to go through, in which case you have to look elsewhere.
    My usual boring signature: Nothing

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2006
    Location
    Florida, USA
    Posts
    565

    Re: Send Data on NetworkStream Getting Stuck

    I am thinking that we may have overloaded the function with calls somehow. Anyways, the WriteTimeout seems very useful as well. I will let you know if we are still stuck. It may take another day or so for testing
    I use VB .NET 2022. Currently developing StudyX educational software, PlazSales POS system and Yargis a space ship shooter game.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width