[GH-ISSUE #25] Urr Recv: Timeout value #11

Closed
opened 2026-05-05 03:33:57 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @ismail-yilmaz on GitHub (Nov 29, 2020).
Original GitHub issue: https://github.com/ultimatepp/ultimatepp/issues/25

3260799d6e/bazaar/Urr/Urr.cpp (L14-L15)

It seems that timeout value can be Upp:Null. But if this is not intended to represent "blocking" behavior (ln:18 seems to suggests that it is not), then it should be as follows:

int t = Nvl(timeout, 0); 
time_out.tv_sec = t / 1000;
time_out.tv_usec = t % 1000 * 1000; 
Originally created by @ismail-yilmaz on GitHub (Nov 29, 2020). Original GitHub issue: https://github.com/ultimatepp/ultimatepp/issues/25 https://github.com/ultimatepp/ultimatepp/blob/3260799d6efbfe835ee4d447a06881b849aaa205/bazaar/Urr/Urr.cpp#L14-L15 It seems that timeout value can be Upp:Null. But if this is not intended to represent "blocking" behavior (ln:18 seems to suggests that it is not), then it should be as follows: ``` int t = Nvl(timeout, 0); time_out.tv_sec = t / 1000; time_out.tv_usec = t % 1000 * 1000; ```
Author
Owner

@ismail-yilmaz commented on GitHub (Nov 29, 2020):

Ok this was false alarm, sorry. select() isn't called on timeout = Null value.
Closing the issue.

<!-- gh-comment-id:735438611 --> @ismail-yilmaz commented on GitHub (Nov 29, 2020): Ok this was false alarm, sorry. select() isn't called on timeout = Null value. Closing the issue.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/ultimatepp#11
No description provided.