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

Fix server expectText stuck #1563

Closed
wants to merge 1 commit into from
Closed

Conversation

damn1
Copy link
Contributor

@damn1 damn1 commented Feb 23, 2018

Related to #1542 this could be a less invasive fix than placing a default timeout on the stream.
Unless we want to go for #1542 (comment), let me know.
On the fly I also moved [StreamConnectionReader] implementation from h to cpp.

@damn1 damn1 requested a review from drdanz as a code owner February 23, 2018 17:57
ConstString result = in->readLine(terminatingChar, &lsuccess);
in->setReadTimeout(0.0);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably get current timeout and reset the previous value

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, I didn't think about that, but now I checked and there is no easy way to get that: no getReadTimeout() or haveReadTimeout() method in the InputStream. Do you think is this the case to add one?

@Nicogene Nicogene added Component: Library - YARP_os Type: Cleanup Involves cleaning up some part of YARP PR Type: Bugfix This PR fixes some bug Target: YARP v2.3.72.1 labels Feb 26, 2018
@drdanz
Copy link
Member

drdanz commented May 4, 2018

Cherry-picked the first commit

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

Successfully merging this pull request may close these issues.

3 participants