httperfrb 0.3.10 → 0.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/HISTORY.md +8 -0
- data/lib/httperf.rb +3 -0
- data/lib/httperf/version.rb +1 -1
- metadata +1 -1
data/HISTORY.md
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
HTTPerf.rb
|
2
2
|
==========
|
3
3
|
|
4
|
+
### 0.3.11
|
5
|
+
|
6
|
+
* Fixing error handling in process handing for `HTTPerf#run`.
|
7
|
+
|
8
|
+
### 0.3.10
|
9
|
+
|
10
|
+
* Adding `tee` support.
|
11
|
+
|
4
12
|
### 0.3.6
|
5
13
|
|
6
14
|
* cleaning up Open3 vs. Open4 and making them autoload for a slight performance increase
|
data/lib/httperf.rb
CHANGED
@@ -97,6 +97,7 @@ class HTTPerf
|
|
97
97
|
rescue Errno::EIO
|
98
98
|
#Errno:EIO error probably just means that the process has finished giving output
|
99
99
|
end
|
100
|
+
Process.wait(pid)
|
100
101
|
end
|
101
102
|
rescue PTY::ChildExited
|
102
103
|
# The child process has exited.
|
@@ -105,6 +106,8 @@ class HTTPerf
|
|
105
106
|
if $?.exitstatus == 0
|
106
107
|
return Parser.parse(out) if @parse
|
107
108
|
return out
|
109
|
+
else
|
110
|
+
raise "httperf exited with status #{$?.exitstatus}\n\nhttperf output:\n--------------\n#{out}"
|
108
111
|
end
|
109
112
|
end
|
110
113
|
|
data/lib/httperf/version.rb
CHANGED