21 Jul
2010
21 Jul
'10
7:16 a.m.
Hi Anthony, On 21.07.2010 02:20, Anthony Minessale wrote:
*side note*
There is always a small potential for a race condition on the socket which is dealt with in the ESL client lib so you are safe as long as you use the official ESL client code.
I looks that I hit this small potential already last night - or my script was just out of protocol-synch (which is quite likely). Using ESL was my first thought, but unfortunately I found no ESL for Erlang in (svn) trunk.
If you want to avoid blocking api commands from stalling events, consider 2 socket objects, one for events and one for commands or use bgapi.
I had the same idea, but I try to avoid two socket connections to FS just for lazyness. ;) kind regards Helmut