eclipse-californium / californium.tools

Californium project
Other
59 stars 57 forks source link

RDNodeResource bug fixes and improvements #23

Closed calif-devel closed 8 years ago

calif-devel commented 8 years ago

RDNodeResource class should not presume "coap" as scheme when setting context ("con"). Instead use Request.getScheme() when constructing context. If this fails, try inferring the scheme from request option "Uri-Port". RDNodeResource now uses Executors.newSingleThreadScheduledExecutor(new Utils.DaemonThreadFactory(....)) instead of Timer. This improves over the current version where a new Timer object (hence a new thread) is created every time RD life time is set and would only one timer task always.

Signed-off-by: Vinod Mukkamala vmukkamala@hotmail.com

sophokles73 commented 8 years ago

merged in 57daf9ed768e3865049270ea06e4b51c0097fb52