DevHeads.net

Timeout not working with IO on Windows

Issue #6661 has been reported by undur_gongor (Michael Warmuth).

Author: undur_gongor (Michael Warmuth)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: Ruby 1.9.3p194 (2012-04-20) [i386-mingw32]

This code does not time out as expected when run on Ruby 1.9.3p194 (2012-04-20) [i386-mingw32]:

require 'timeout'
Timeout.timeout(1) { gets }

On different Unix-like OSes it does time out after 1 second with different versions of Ruby.

Comments

[Backport93 - Backport #6661] Timeout not work

By U.Nakamura at 06/28/2012 - 04:14

Issue #6661 has been updated by usa (Usaku NAKAMURA).

... and, r32557 .
Author: undur_gongor (Undur Gongor)
Status: Assigned
Priority: Normal
Assignee: naruse (Yui NARUSE)
Category:
Target version:

This code does not time out as expected when run on Ruby 1.9.3p194 (2012-04-20) [i386-mingw32]:

require 'timeout'
Timeout.timeout(1) { gets }

On different Unix-like OSes it does time out after 1 second with different versions of Ruby.

[Backport93 - Backport #6661] Timeout not work

By U.Nakamura at 06/28/2012 - 04:02

Issue #6661 has been updated by usa (Usaku NAKAMURA).

Assignee changed from usa (Usaku NAKAMURA) to naruse (Yui NARUSE)

r32549 is the right answer.
naruse, could you merge it?
Author: undur_gongor (Undur Gongor)
Status: Assigned
Priority: Normal
Assignee: naruse (Yui NARUSE)
Category:
Target version:

This code does not time out as expected when run on Ruby 1.9.3p194 (2012-04-20) [i386-mingw32]:

require 'timeout'
Timeout.timeout(1) { gets }

On different Unix-like OSes it does time out after 1 second with different versions of Ruby.

[ruby-trunk - Bug #6661] Timeout not working w

By U.Nakamura at 06/27/2012 - 21:05

Issue #6661 has been updated by usa (Usaku NAKAMURA).

There is no problem on trunk, but I forgot which change fixed it...
Maybe r34388?

I'll test it later.
If there are those who can check ahead of me, please do it.

Author: undur_gongor (Undur Gongor)
Status: Assigned
Priority: Normal
Assignee: usa (Usaku NAKAMURA)
Category:
Target version:
ruby -v: Ruby 1.9.3p194 (2012-04-20) [i386-mingw32]

This code does not time out as expected when run on Ruby 1.9.3p194 (2012-04-20) [i386-mingw32]:

require 'timeout'
Timeout.timeout(1) { gets }

On different Unix-like OSes it does time out after 1 second with different versions of Ruby.

[ruby-trunk - Bug #6661][Assigned] Timeout not

By Luis Lavena at 06/27/2012 - 17:49

Issue #6661 has been updated by luislavena (Luis Lavena).

Status changed from Open to Assigned
Assignee set to usa (Usaku NAKAMURA)

Author: undur_gongor (Undur Gongor)
Status: Assigned
Priority: Normal
Assignee: usa (Usaku NAKAMURA)
Category:
Target version:
ruby -v: Ruby 1.9.3p194 (2012-04-20) [i386-mingw32]

This code does not time out as expected when run on Ruby 1.9.3p194 (2012-04-20) [i386-mingw32]:

require 'timeout'
Timeout.timeout(1) { gets }

On different Unix-like OSes it does time out after 1 second with different versions of Ruby.