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

Timing out client: IPv4Address(TCP, 'xxxx', xxx) in the twisted logs #829

Closed
tardyp opened this issue Apr 28, 2017 · 8 comments
Closed

Timing out client: IPv4Address(TCP, 'xxxx', xxx) in the twisted logs #829

tardyp opened this issue Apr 28, 2017 · 8 comments

Comments

@tardyp
Copy link
Contributor

tardyp commented Apr 28, 2017

When using autobahn websocket, using browsers which idle, the buildbot logs are filled with "Timing out client: IPv4Address([...])"

this is coming from:

a064c5dff twisted/protocols/http.py (exarkun               2003-06-11 19:33:22 +0000 1644) class HTTPChannel(basic.LineReceiver, policies.TimeoutMixin):
[...]
a064c5dff twisted/protocols/http.py (exarkun               2003-06-11 19:33:22 +0000 2007)     def timeoutConnection(self):
a064c5dff twisted/protocols/http.py (exarkun               2003-06-11 19:33:22 +0000 2008)         log.msg("Timing out client: %s" % str(self.transport.getPeer()))
5f37cd1b8 src/twisted/web/http.py   (Cory Benfield         2017-01-13 20:23:38 +0000 2009)         self.loseConnection()
9497c99e8 twisted/protocols/http.py (itamarst              2001-12-27 17:17:12 +0000 2010)

I wonder if it would make sense to override this method in autobahn and drop this log.
Client timing out is obviously an expected behaviour, which does not require a log.

What do you think?

@meejah
Copy link
Contributor

meejah commented Apr 28, 2017

Yeah, it does seem to fill up the logs -- and I don't really see any usefulness there either, personally....

@oberstet
Copy link
Contributor

oberstet commented May 2, 2017

I agree, it is annoying and mostly noise.

There is a corresponding issue crossbario/crossbar#974

This likely needs bits in Twisted: https://github.com/twisted/twisted/blob/trunk/src/twisted/web/http.py#L2161

@tardyp
Copy link
Contributor Author

tardyp commented May 2, 2017

Do we have a twisted bug already?

@oberstet
Copy link
Contributor

oberstet commented May 2, 2017

@tardyp I'm not aware of a Twisted issue tracking this ..

@meejah
Copy link
Contributor

meejah commented May 2, 2017

I do have a patch that fixes this without touching Twisted: crossbario/crossbar#1060

Not ideal, because I basically just override the method that does the logging -- but I don't see any other solution because this Twisted code is still using the old-twisted-logger, so it's log.msg :/

@oberstet
Copy link
Contributor

oberstet commented May 2, 2017

@meejah ah, right. you already fixed it;) I am catching up with stuff, merged this one. Only thing left: use the new LessNoisy thing in all places within CB where we do Web (REST bridge, Universal Transport ..

@meejah
Copy link
Contributor

meejah commented Jun 9, 2017

Because of the way it's set up, this patch works for the REST bridge as well.

It looks like the universal transport also (or, the way it steals the transport means the channel doesn't timeout, maybe?) In any case, I can't repeat this with the universal transport.

@meejah meejah closed this as completed Jun 9, 2017
@oberstet
Copy link
Contributor

oberstet commented Jun 9, 2017

@meejah thanks for checking!

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

No branches or pull requests

3 participants