Permalink
Browse files

gurantee server stop within 3 seconds

  • Loading branch information...
1 parent 7f58f54 commit 92e950d61248da0c328e952a92b93767d40b9b2f @avalanche123 committed Jun 1, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 features/pipe.feature
View
@@ -30,6 +30,15 @@ Feature: Named pipes
end
end
+ stopper = loop.timer
+
+ stopper.start(2800, 0) do |e|
+ raise e if e
+
+ server.close {}
+ stopper.close {}
+ end
+
begin
loop.run
end

0 comments on commit 92e950d

Please sign in to comment.