|
From: | John Donoghue |
Subject: | [Octave-bug-tracker] [bug #57087] [instrument-control] tests fail on macOS for tcp/udp read/write |
Date: | Sun, 20 Oct 2019 16:50:38 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0 |
Follow-up Comment #1, bug #57087 (project octave): It looks like its failing where ever it has to wait more than 1 second. In the code of octave_udp::read: There is a section: else { tv.tv_sec = 0; if (readtimeout > 1000) tv.tv_usec = 1000 * 1000; else tv.tv_usec = readtimeout * 1000; } Perhaps it should be: else { if (readtimeout >= 1000) { tv.tv_sec = 1; tv.tv_usec = 0; } else { tv.tv_usec = readtimeout * 1000; tv.tv_sec = 0; } } _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?57087> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |