Fix to make "infinite" blocking select block for Integer.MAX_VALUE instead of returning right away.

This commit is contained in:
jfrijters 2007-08-23 09:28:00 +00:00
Родитель 52ca831faa
Коммит 3a0429a198
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -129,7 +129,8 @@ final class DotNetSelectorImpl extends SelectorImpl
try
{
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 _)
{