<div dir="ltr"><div>> Probably just write raw data in the packet<br></div>I believe endianness won't allow using raw data.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-08-25 13:11 GMT+04:00 Alex Hermann <span dir="ltr"><<a href="mailto:alex@speakup.nl" target="_blank">alex@speakup.nl</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Friday 22 August 2014, Charles Chance wrote:<br>
> On 22 August 2014 16:46, Alex Hermann <<a href="mailto:alex@speakup.nl">alex@speakup.nl</a>> wrote:<br>
</div><div class="">> > Last week, i just built profile synchronisation in the dialog module,<br>
> > based on<br>
> > dmq. It took quite a bit of debugging time because of the state dmq was<br>
> > in.<br>
><br>
> Can you expand a little on "the state dmq was in"?<br>
<br>
</div>I was hoping to use it as-is, but i encountered issues which had to be<br>
resolved before i could even use the module:<br>
<br>
- As soon as i enabled the dmq module, i experienced segfaults.<br>
- It had bad interaction with the maxfwd module<br>
- Status updates between hosts were largely ignored.<br>
- The configured server_address wasn't used to send messages.<br>
<div class=""><br>
<br>
<br>
> > It still has some rough edges, but i'll try to push a branch (shortly<br>
> > after)<br>
> > this weekend for review.<br>
><br>
> Looking forward to seeing it - may save me the time :)<br>
<br>
</div>I pushed my WIP to the branch alexh/dialog-sync-wip which also contains<br>
dialog and dmq fixes and cleanups.<br>
<br>
It's WIP, so it might still change. This branch is only compile-tested so<br>
far, because i normally develop against 3.2. I just cherry-picked most of my<br>
patches to master.<br>
<br>
Known issues:<br>
 - Sync get off under load, cause unknown yet, but probably because of out-<br>
of-order sync messages.<br>
<br>
Still on the TODO list:<br>
 - Delete 'disabled'  dmq hosts<br>
 - Cope better with out-of-order sync messages<br>
 - Sync initial state<br>
 - Clean shutdown of DMQ, free all memory<br>
 - More efficient protocol instead of JSON. Probably just write raw data in<br>
the packet, so the receiving side can just use a pointer into the buf<br>
instead of having to copy everything.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Alex<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
--<br>
Alex Hermann<br>
<br>
_______________________________________________<br>
sr-dev mailing list<br>
<a href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div><div>Best regards,<br>Alekzander Spiridonov</div><br></div>
</div>