Skip to content
Permalink
Browse files

fixed: wrong timeout set in SocketRead() for posix. closes #27. thanks

  • Loading branch information...
opdenkamp committed Oct 24, 2016
1 parent c27d06e commit 65cd60347a7ce00ebc57600f450a0392b2f06a59
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/posix/os-socket.h
@@ -135,7 +135,7 @@ namespace P8PLATFORM
{
long iTimeLeft = (long)readTimeout.TimeLeft();
timeout.tv_sec = iTimeLeft / (long int)1000.;
timeout.tv_usec = iTimeLeft % (long int)1000.;
timeout.tv_usec = (iTimeLeft % (long int)1000.) * (long int)1000.;
tv = &timeout;
}

0 comments on commit 65cd603

Please sign in to comment.
You can’t perform that action at this time.