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

Global request timeout #36

Open
enginoid opened this issue Oct 5, 2010 · 1 comment
Open

Global request timeout #36

enginoid opened this issue Oct 5, 2010 · 1 comment

Comments

@enginoid
Copy link

enginoid commented Oct 5, 2010

Without having intricate (or cursory) knowledge of sockets, it seems to me that only a very basic failure scenario is handled by the connect_timeout (perhaps aptly named to indicate that it does just that) currently implemented in BrokerConnection. I'm guessing that this means that only if the port is pretending not to be there (it's stealthed, and connection refusal isn't signaled), this timeout applies.

When experimenting with the current timeout mechanism, this timeout did not seem to kick in where I created a "dummy" server that either only listened to a given port or listened and subsequently accepted the connection, disregarding any messages received.

I'd be interested in allowing "more global" timeouts because our server has had some problems with responding under certain loads, and this currently makes our application hang until Apache times out.

I'm interested to hear if you've given any thought to this, and if you think this is a valid feature I'm available to help out implementing and/or testing this.

@enginoid
Copy link
Author

enginoid commented Oct 5, 2010

Is it possible that there's at timeout when reading but no timeout when writing, at least to an AMPQ queue? It seems to me that a call to Publisher.send(...) for that backend is ending in a call to sock.sendall that's not wrapped in a pair of sock.settimeout(...) calls.

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

No branches or pull requests

1 participant