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

Fast requests hanging Tufao #48

Closed
cijic opened this issue Aug 26, 2014 · 6 comments
Closed

Fast requests hanging Tufao #48

cijic opened this issue Aug 26, 2014 · 6 comments

Comments

@cijic
Copy link

cijic commented Aug 26, 2014

I use tufao for playing video and audio from libtorrent. So, when I make frequently requests, like frequently switching audio files, tufao starts hanging. I added additional logs in sources and here what have I got:

virtual void Tufao::TcpServerWrapper::incomingConnection(qintptr)
void Tufao::HttpServer::onNewConnection(qintptr)
virtual bool Tufao::HttpConnectionHandler::incomingConnection(qintptr)
virtual void Tufao::TcpServerWrapper::incomingConnection(qintptr)
void Tufao::HttpServer::onNewConnection(qintptr)
virtual bool Tufao::HttpConnectionHandler::incomingConnection(qintptr)

As You see, starting from Tufao::TcpServerWrapper::incomingConnection(qintptr) we have recirculation. In 10 seconds I've got more than 10 000 of calls of these methods.

So, can it be fixed and in what may be problem? In tufao or in Qt?

@vinipsmaker
Copy link
Owner

What Tufão version are you using? Can you provide a reduced code sample that trigger this problem?

@cijic
Copy link
Author

cijic commented Aug 27, 2014

I use last version of Tufao from github.com
I can't provide reduced code sample, because I don't know exact conditions to repeat this bug.
But I catch it when I make frequently requests to tufao, but NOT always.
Here logs for usual work state http://pastebin.com/6MwULzfM and problem work state http://pastebin.com/Xnb5rtFb

@vinipsmaker
Copy link
Owner

I use last version of Tufao from github.com

What is last version? I hope you aren't using code from branch master, because this is development code where any commit makes in. In fact, I hope you only use tagged releases, because I don't even guarantee any API/ABI stability if you're using "unreleased" versions.

And thank you for the logs. I will take a deeper look at the weekend.

@cijic
Copy link
Author

cijic commented Aug 27, 2014

I used code from master branch. Now I switched to last release in tagged releases, but bug repeated.

@vinipsmaker
Copy link
Owner

One last thing. I understood that the error happens when many requests using differente tcp connections are issued within a short time span. What platform are you using? What Qt version? I'd like to setup an environment as close as possible to yours to replicate the problem.

@cijic
Copy link
Author

cijic commented Aug 28, 2014

Qt 5.3.1
Windows 7 x64

@cijic cijic closed this as completed Sep 21, 2014
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

2 participants