Please sign in to comment.
bug 1742 - libconflate handles single-JSON REST polling better
A user was trying moxi/libconflate against their own REST/HTTP server, which was not following the tested, advanced streaming REST pattern that ns_server/menelaus provides (which streams a little more JSON on a long-running connection whenever the cluster config changes). Instead, the user's REST/HTTP server was just providing a single JSON response and ending the connection, like most of the world will probably attempt and expect in their first interaction with moxi. With this change, libconflate now informs callbacks during this single JSON response case, and the 1-second sleep-looping now happens for more code pathways. Also, null terminated the assembled JSON response correctly. Change-Id: Iec5585bdb100da28e36d2373ed6ce1fe13510fc1 Reviewed-on: http://review.northscale.com/1149 Tested-by: Steve Yen <email@example.com> Reviewed-by: Eric Lambert <firstname.lastname@example.org>
- Loading branch information...