Chromium Code Reviews
DescriptionFixing a Dr. Memory hang in the remoting_unittests
There were two problems that needed to be addressed. One was a failure that
occurred if a stream writer wrote the message type and payload in separate
write actions (timing problem) the second was a test bug in the
MultipleMessages test which did not check for success/failure for each loop
iteration.
The first problem was a timing issue where the reader might fail if the message
payload was written separately from the type and was not written quickly. This
was not repro'd on normal builds but we see it on the Dr. Memory bot since
operations are slowed down as a result of the build flags used for the tool. I
fixed this problem by reading in the type and payload separately.
The second problem was in the unit test itself. If an error occurred in the
Multiple messages test, the loop would write to the end of the pipe and wait
(forever) for an answer. We now verify the message was written after every
iteration.
BUG=603357
Committed: https://crrev.com/35b79b13f17c4429107bef826c8b773f0c9b2336
Cr-Commit-Position: refs/heads/master@{#388307}
Patch Set 1 #Patch Set 2 : #Patch Set 3 : Fixing the formatting for the changed files. #
Total comments: 2
Patch Set 4 : Updating the logic used for reading from the stream. #Patch Set 5 : Fixing up a callsite where we passed the message string #
Total comments: 6
Patch Set 6 : Addressing CR feedback #
Messages
Total messages: 13 (4 generated)
|
|||||||||||||||||||||||||||||||||||||