Home My Page Projects Code Snippets Project Openings DPWS Core
Summary Activity Forums Tracker Tasks Docs Surveys News SCM Files Mediawiki

[#410] multiple start and stop generate error

Date:
2014-07-15 13:12
Priority:
3
State:
Open
Submitted by:
Antoine Hincelin (ahincelin)
Assigned to:
Stéphane ROUGES (srouges)
Target Fix Version:
none
Product:
DPWS Core
Operating System:
none
Component:
DCRuntime
Version:
v2.5.1
Severity:
normal
Resolution:
Duplicate
Hardware:
none
URL:
Summary:
multiple start and stop generate error

Detailed description
platform: vxWorks
dpwscore: 2.5.1

A call to dpws_shutdown() leaves reactor in a wrong state?
A second call to dpws_init() + dpws_server_init() leads to following error: DPWS_ERR_ILLEGAL_STATE
This is returned by dc_reactor_register_timer(), as dc_reactor_init() was not previously called.

reactor.status has value different from DC_REACTOR_UNINITIALIZED?

A possible solution would be to to initialize global var reactor in _init_ex() function.
Message  ↓
Date: 2014-07-16 08:17
Sender: Antoine Hincelin

You're right, this is a duplicate of bug #407.
bug fix in trunk solves the problem.

Thank you.
Antoine


Date: 2014-07-15 21:17
Sender: Stéphane ROUGES

Hello,

Did you get the #407 bug fix in trunk ? With this fix, dpws_server_init() should be callable either without calling none of dpws_server_shutdown() & dpws_shutdown() (hot restart) or after calling dpws_server_shutdown() only (that with the fix, will use the branch with dc_reactor_init()).
The sequence dpws_server_shutdown(), dpws_shutdown(), dpws_init(), dpws_server_init() should also work.
Tell me if you already have the fix and follow one of the quoted sequence.

BR,
Stéphane

Field Old Value Date By
ResolutionNone2014-07-16 08:45srouges
assigned_tonone2014-07-15 21:17srouges