[System] Fix bug #31209 - HttpConnection infinite loop
authorAdam Burgess <AdamBurgess@users.noreply.github.com>
Fri, 2 Oct 2015 14:06:08 +0000 (14:06 +0000)
committerAdam Burgess <AdamBurgess@users.noreply.github.com>
Fri, 2 Oct 2015 14:11:11 +0000 (14:11 +0000)
commit101bd2a868305f861b51f22756e3c27bf4447e86
treeb744e1be1721a3e8905fdee57554c1e132c84741
parentb26f7890202f367223a1cb48625aee8b43f1b45f
[System] Fix bug #31209 - HttpConnection infinite loop
A continue statement in a do...while loop was skipping code to read the next line in a connection, causing an infinite loop.
Fixed by refactoring the loop, removing duplicated code.
mcs/class/System/System.Net/HttpConnection.cs
mcs/class/System/Test/System.Net/HttpListener2Test.cs