telefonicaid / lwm2m-node-lib

Library for building OMA Lightweight M2M Applications (client and server).
75 stars 44 forks source link

When the server is started using IPv6 messages arrive to the handler twice #23

Closed dmoranj closed 9 years ago

dmoranj commented 9 years ago

If the server is started with the option { type: 'udp6' }, some of the messages are read twice from the server (same messageId and contents). This may reflect a bug in the COAP Library or it may be a problem on the way we handle the messages (maybe registering the listeners twice?). It doesn't seem to reproduce using IPv4.

It can be reproduced using the tests for https://github.com/telefonicaid/lightweightm2m-iotagent

dmoranj commented 9 years ago

Fixed (now the default protocol is IPv6, and all the tests are run with it)