Ticket #6136 (closed bug: duplicate)

Opened 13 months ago

Last modified 13 months ago

gettimeofday should not be used to schedule timeouts

Reported by: DanielWaterworth Owned by:
Priority: normal Milestone: 7.6.1
Component: libraries/base Version: 7.4.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets: #5865

Description

From what I can tell,  getCurrentTime uses gettimeofday and is used in  registerTimeout for the purpose of scheduling timeouts. I recommend reading  this for an explanation of why this isn't a good idea.

Change History

Changed 13 months ago by pcapriotti

  • status changed from new to closed
  • difficulty set to Unknown
  • resolution set to duplicate
  • related set to #5865
  • milestone set to 7.6.1

Thanks for the report.

We already switched to monotonic timers in HEAD. See #5865.

Changed 13 months ago by DanielWaterworth

Thanks!

Note: See TracTickets for help on using tickets.