All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit f65d533e authored by Leigh B Stoller's avatar Leigh B Stoller

Deal with a problem we noticed when the firewall rebooted; the pubsub

library gave up trying to reconnect, so when we get back an error from
the event system, kill he even handle so that we try to reconnect the
next time through the loop.
parent abb6ce68
......@@ -361,6 +361,8 @@ sub sendevent($$)
my $tuple = address_tuple_alloc();
if (!$tuple) {
logit("$node: could not allocate an address tuple");
event_unregister($event_handle);
$event_handle = undef;
return 1;
}
......@@ -372,11 +374,15 @@ sub sendevent($$)
my $notification = event_notification_alloc($event_handle, $tuple);
if (!$notification) {
logit("$node: could not allocate notification");
event_unregister($event_handle);
$event_handle = undef;
return 1;
}
if (!event_notify($event_handle, $notification)) {
logit("$node: could not send $event notification");
event_unregister($event_handle);
$event_handle = undef;
return 1;
}
event_notification_free($event_handle, $notification);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment