Re: Buffer Size Command Hanging (General questions)
Mike,
I checked our source code, but I don't have good news about this issue. When large data is returned to Waitfor/Execute, on each new byte chunk that arrives from the server full search is made. Usually C++ code can do this fast, but in C# obviously looping through byte array takes time.
Even more, if regular expressions are used, bytes are converted to chars which are then converted to string - all of this takes CPU utilization.
In order to workaround this problem, I suggest you don't use Waitfor/Execute for this purpose, since they are too general. I can't tweak them since htey have to stay general enough, but you would have better luck by storing data that arrives to local buffer, and keep only last line that arrives. This way you can easily check the line if it contains whatever you provided to Waitfor/Execute in the first place.
Can you try that?
Regards,
Kreso
Complete thread:
- Buffer Size Command Hanging - mmorton, 2009-07-07, 14:32
- Re: Buffer Size Command Hanging - wodDamir, 2009-07-07, 14:43
- Re: Buffer Size Command Hanging - mmorton, 2009-07-07, 15:27
- Re: Buffer Size Command Hanging - wodDamir, 2009-07-07, 15:44
- Re: Buffer Size Command Hanging - mmorton, 2009-07-07, 17:30
- Re: Buffer Size Command Hanging - woddrazen, 2009-07-07, 17:41
- Re: Buffer Size Command Hanging - mmorton, 2009-07-07, 17:56
- Re: Buffer Size Command Hanging - woddrazen, 2009-07-07, 18:15
- Re: Buffer Size Command Hanging - mmorton, 2009-07-07, 18:21
- Re: Buffer Size Command Hanging - woddrazen, 2009-07-07, 18:49
- Re: Buffer Size Command Hanging - mmorton, 2009-07-07, 18:53
- Re: Buffer Size Command Hanging - woddrazen, 2009-07-07, 20:08
- Re: Buffer Size Command Hanging - mmorton, 2009-07-07, 20:53
- Re: Buffer Size Command Hanging - mmorton, 2009-07-07, 21:23
- Re: Buffer Size Command Hanging - woddrazen, 2009-07-07, 22:04
- Re: Buffer Size Command Hanging - wodSupport, 2009-07-08, 00:31
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 10:28
- Re: Buffer Size Command Hanging - wodDamir, 2009-07-08, 11:04
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 11:16
- Re: Buffer Size Command Hanging - wodDamir, 2009-07-08, 11:29
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 11:33
- Re: Buffer Size Command Hanging - wodDamir, 2009-07-08, 11:45
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 11:54
- Re: Buffer Size Command Hanging - wodDamir, 2009-07-08, 12:03
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 12:54
- Re: Buffer Size Command Hanging - wodSupport, 2009-07-08, 13:13
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 13:17
- Re: Buffer Size Command Hanging - wodSupport, 2009-07-08, 13:21
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 13:24
- Re: Buffer Size Command Hanging - wodSupport, 2009-07-08, 13:28
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 13:35
- Re: Buffer Size Command Hanging - wodSupport, 2009-07-08, 14:04
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 14:57
- Re: Buffer Size Command Hanging - wodSupport, 2009-07-08, 15:10
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 14:57
- Re: Buffer Size Command Hanging - wodSupport, 2009-07-08, 14:04
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 13:35
- Re: Buffer Size Command Hanging - wodSupport, 2009-07-08, 13:28
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 13:24
- Re: Buffer Size Command Hanging - wodSupport, 2009-07-08, 13:21
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 13:17
- Re: Buffer Size Command Hanging - wodSupport, 2009-07-08, 13:13
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 12:54
- Re: Buffer Size Command Hanging - wodDamir, 2009-07-08, 12:03
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 11:54
- Re: Buffer Size Command Hanging - wodDamir, 2009-07-08, 11:45
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 11:33
- Re: Buffer Size Command Hanging - wodDamir, 2009-07-08, 11:29
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 11:16
- Re: Buffer Size Command Hanging - wodDamir, 2009-07-08, 11:04
- Re: Buffer Size Command Hanging - mmorton, 2009-07-08, 10:28
- Re: Buffer Size Command Hanging - wodSupport, 2009-07-08, 00:31
- Re: Buffer Size Command Hanging - woddrazen, 2009-07-07, 22:04
- Re: Buffer Size Command Hanging - mmorton, 2009-07-07, 21:23
- Re: Buffer Size Command Hanging - mmorton, 2009-07-07, 20:53
- Re: Buffer Size Command Hanging - woddrazen, 2009-07-07, 20:08
- Re: Buffer Size Command Hanging - mmorton, 2009-07-07, 18:53
- Re: Buffer Size Command Hanging - woddrazen, 2009-07-07, 18:49
- Re: Buffer Size Command Hanging - mmorton, 2009-07-07, 18:21
- Re: Buffer Size Command Hanging - woddrazen, 2009-07-07, 18:15
- Re: Buffer Size Command Hanging - mmorton, 2009-07-07, 17:56
- Re: Buffer Size Command Hanging - woddrazen, 2009-07-07, 17:41
- Re: Buffer Size Command Hanging - mmorton, 2009-07-07, 17:30
- Re: Buffer Size Command Hanging - wodDamir, 2009-07-07, 15:44
- Re: Buffer Size Command Hanging - mmorton, 2009-07-07, 15:27
- Re: Buffer Size Command Hanging - wodDamir, 2009-07-07, 14:43