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

Maximum receive timeout value #125

Open
rhaabu opened this issue May 29, 2019 · 1 comment
Open

Maximum receive timeout value #125

rhaabu opened this issue May 29, 2019 · 1 comment

Comments

@rhaabu
Copy link

rhaabu commented May 29, 2019

Is there a reason why the maximum receive timeout is 25500ms (25.5s) or can this limit be changed to a larger value without unexpected behaviour?

@Override
synchronized public void enableReceiveTimeout(int value) throws UnsupportedCommOperationException {
	if (value < 0)
		throw new IllegalArgumentException("threshold" + value + " < 0 ");
	if (value > 25500)
		throw new UnsupportedCommOperationException("threshold" + value + " > 25500 ");

	checkState();
	synchronized (m_ThresholdTimeoutLock) {
		m_ReceiveTimeoutEnabled = true;
		m_ReceiveTimeoutValue = value;
		thresholdOrTimeoutChanged();
	}
}
@nyholku
Copy link
Owner

nyholku commented May 29, 2019

IIRC (it has been years since I implemented this) but at least on some platform this is a byte value by the time it gets to the native API call where it is the timeout in 100m seconds. You can easily see where that happens in the code. To extend that beyond the 100x255 value would require some work, probably not much.

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