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

Add ability to override overall timeout in TokenLayer #8

Closed
billpratt opened this issue Sep 3, 2013 · 3 comments
Closed

Add ability to override overall timeout in TokenLayer #8

billpratt opened this issue Sep 3, 2013 · 3 comments

Comments

@billpratt
Copy link
Contributor

It would be nice to override the _sequenceTimeout in TokenLayer.cs. For long running block1 transfers, it timeouts after a minute.

public TokenLayer()
: this(CoapConstants.DefaultOverallTimeout)
{ }

@longshine
Copy link
Member

Sorry for taking this long to resolve this issue. I haven't found a nice practice until recent.
You may use ICoapConfig.SequenceTimeout to specify a different timeout for TokenLayer when creating ICommunicator.

BTW, I am really curious about your work on iOS, can I find it in the app store?

@longshine longshine reopened this Mar 6, 2014
@longshine
Copy link
Member

May use Request.SequenceTimeout either.
If not set, the timeout in TokenLayer will be used; a value gt 0 means timeout in milliseconds, while a value lt 0 means never timeout.

@longshine
Copy link
Member

Here is a sample for ICoapConfig.SequenceTimeout

  CoapConfig config = new CoapConfig();
  config.SequenceTimeout = 10000; // ms

  LocalEndPoint ep = new LocalEndPoint(CommunicatorFactory.CreateCommunicator(config));

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

2 participants