[erlang-questions] Handling TICK in a C Node running longish jobs
Morten Krogh
mk@REDACTED
Thu Dec 9 19:04:11 CET 2010
What aboutnet_kernel:set_net_ticktime(NetTicktime).
But you have to make the change for all nodes in your network, I think.
Morten.
On 12/9/10 5:01 PM, Robert Raschke wrote:
> Hiya,
>
> I've got a C program that acts as a Node using the nice EI interface libs.
>
> The C program is single threaded. And it now turns out I sometimes want it
> to do something that might actually take a few minutes.
>
> This in turn leads to TICK messages not getting acknowledged in time and the
> Erlang Node removing the timed out connection.
>
> I'm looking for some thoughts on how best to approach this. A couple of
> thoughts come to mind:
>
> 1. Make the C program multi-threaded.
> 2. Somehow lengthen the TICK interval for this connection.
>
> The first one makes me cringe. And the second one I don't know how to do.
>
> Any other ideas or pointers are most welcome,
> Robby
>
More information about the erlang-questions
mailing list