File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
java/server/src/org/openqa/grid/web/servlet Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,16 @@ public HubW3CStatusServlet(GridRegistry registry) {
54
54
@ Override
55
55
protected void doGet (HttpServletRequest req , HttpServletResponse resp )
56
56
throws IOException {
57
- List <RemoteProxy > allProxies = registry .getAllProxies ().getSorted ();
57
+ List <RemoteProxy > allProxies = registry .getAllProxies ().getSorted ()
58
+ .parallelStream ().filter (remoteProxy -> {
59
+ // Only counting proxies that reply at their status endpoint
60
+ try {
61
+ remoteProxy .getProxyStatus ();
62
+ return true ;
63
+ } catch (Exception e ) {
64
+ return false ;
65
+ }
66
+ }).collect (Collectors .toList ());
58
67
List <RemoteProxy > busyProxies = allProxies .parallelStream ()
59
68
.filter (proxy -> proxy .getMaxNumberOfConcurrentTestSessions () - proxy .getTotalUsed () <= 0 )
60
69
.collect (Collectors .toList ());
You can’t perform that action at this time.
0 commit comments