Skip to content

Commit

Permalink
Allow setting a custom timeout time with ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
tnm committed Dec 10, 2013
1 parent ddf8e12 commit e0ed7f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pygments/popen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def mentos(method, args=[], kwargs={}, original_code=nil)

begin
# Timeout requests that take too long.
timeout_time = 8
timeout_time = ENV["MENTOS_TIMEOUT"] || 8

Timeout::timeout(timeout_time) do
# For sanity checking on both sides of the pipe when highlighting, we prepend and
Expand Down

1 comment on commit e0ed7f7

@FranklinChen
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.