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

Infinite loop #1173

Closed
blling opened this issue Dec 24, 2018 · 5 comments
Closed

Infinite loop #1173

blling opened this issue Dec 24, 2018 · 5 comments

Comments

@blling
Copy link

blling commented Dec 24, 2018

I run into a infinite loop after upgrade to fitnesse-20181223, i found the thread is busy with method readAndParseRequestLine, which is changed by commit 4078f4e#diff-0e2a986db526e0ce77e3e3747199b0dbR72.

fitnesse-20181221 is OK

jstack screenshot is here:
image

@fhoeben
Copy link
Collaborator

fhoeben commented Dec 24, 2018

That is unfortunate. I'll try to make a fix asap.
Anything in particular you are doing at the time this loop occurs?

@fhoeben
Copy link
Collaborator

fhoeben commented Dec 24, 2018

What is the behaviour of FitNesse because of this loop? Does it hang, or ...?

I believe the code you refer to is only an infinite loop if there is a client that keeps sending newlines to FitNesse. That might be a browser that tries to keep a connection open. I would expect that to eventually send a real request...

@blling
Copy link
Author

blling commented Dec 24, 2018

After a try use sample-fitnesse-project, it seems browser releated, Chrome is OK, Firefox is NG.

I reproduce it in the follow steps:

Clone sample-fitnesse-project -> mvn exec:exec -> open http://localhost:9090 in Firfox.

then the cpu is up, if you refresh the page n times,the cpu is up to 100*n

Firfox version:
image

@fhoeben
Copy link
Collaborator

fhoeben commented Dec 24, 2018

I see the behaviour now. Indeed I'm able to reproduce with Firefox.
Safari does not seem to have the problem,.

@blling
Copy link
Author

blling commented Dec 25, 2018

@fhoeben Thanks for your quick fix. 👍
Upgrade to fitnesse-20181224 is OK now.

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