зеркало из https://github.com/mono/ikvm-fork.git
Fix to make "infinite" blocking select block for Integer.MAX_VALUE instead of returning right away.
This commit is contained in:
Родитель
52ca831faa
Коммит
3a0429a198
|
@ -129,7 +129,8 @@ final class DotNetSelectorImpl extends SelectorImpl
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (false) throw new SocketException();
|
if (false) throw new SocketException();
|
||||||
Socket.Select(read, write, error, microSeconds);
|
// FXBUG docs say that -1 is infinite timeout, but that doesn't appear to work
|
||||||
|
Socket.Select(read, write, error, timeout < 0 ? Integer.MAX_VALUE : microSeconds);
|
||||||
}
|
}
|
||||||
catch (SocketException _)
|
catch (SocketException _)
|
||||||
{
|
{
|
||||||
|
|
Загрузка…
Ссылка в новой задаче