Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix out of max client quota error

sometimes unbind method will fail due to out of max client quota,
therefore, client connections are released via restart application

Change-Id: Ie6b0f1b73a272431dfeadc48b53f7d22e8e3f698
Signed-off-by: Pin Xie <pxie@vmware.com>
Reviewed-on: http://reviews.cloudfoundry.org/11264
Tested-by: CI Master <cf-ci@rbcon.com>
Reviewed-by: Chunjie Zhu <czhu@vmware.com>
Reviewed-by: Michael Zhang <zhangcheng@rbcon.com>
  • Loading branch information...
commit 0dbc5780eb0d7a4c9333f5c17db147b289134bb4 1 parent 932e325
@pxie pxie authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 spec/service_quota/ruby19_sinatra_spec.rb
View
6 spec/service_quota/ruby19_sinatra_spec.rb
@@ -366,10 +366,8 @@ def verify_max_clients(max_clients, manifest, service_url, error_msg)
r.body_str.should == 'ok'
r.close
- app.unbind(service)
- service.delete
- service2 = create_service(manifest)
- app.bind(service2)
+ #clean up all service connection
+ app.restart
r = app.get_response(:post, "/service/#{service_url}/clients/#{max_clients+1}", "")
r.response_code.should == 200
Please sign in to comment.
Something went wrong with that request. Please try again.