Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Posts not timing out #2

Closed
nahi opened this issue Oct 30, 2009 · 2 comments
Closed

Posts not timing out #2

nahi opened this issue Oct 30, 2009 · 2 comments
Labels

Comments

@nahi
Copy link
Owner

nahi commented Oct 30, 2009

http://dev.ctor.org/http-access2/ticket/233

@nahi
Copy link
Owner Author

nahi commented Nov 4, 2009

This test seems to work.

  def test_receive_timeout_post
    # this test takes 2 sec
    assert_equal('hello', @client.post(@url + 'sleep', :sec => 2).content)
    @client.receive_timeout = 1
    assert_equal('hello', @client.post(@url + 'sleep', :sec => 0).content)
    assert_raise(HTTPClient::ReceiveTimeoutError) do
      @client.post(@url + 'sleep', :sec => 2)
    end
    @client.receive_timeout = 3
    assert_equal('hello', @client.post(@url + 'sleep', :sec => 2).content)
  end

@nahi
Copy link
Owner Author

nahi commented Oct 12, 2011

I am closing this since no feedback was provided.
Please reopen this or file a new issue if it still happens on the latest version of httpclient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant