Skip to content

Commit

Permalink
bareos-sd: close network connection if job isn't started
Browse files Browse the repository at this point in the history
If the Director tries to start a new job on the SD, the SD checks,
if the MaximumConcurrentJobs criteria meet. If not, no new job is
started.
This fix will close the network connection.

Fixes #763: some Backups fail after 605 seconds in a schedule of 170 server
  • Loading branch information
joergsteffens committed Mar 20, 2017
1 parent 4406fbb commit adfecb4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/stored/dir_cmd.c
Expand Up @@ -230,6 +230,7 @@ void *handle_director_connection(BSOCK *dir)

if (!count_running_jobs()) {
Emsg0(M_ERROR, 0, _("Number of Jobs exhausted, please increase MaximumConcurrentJobs\n"));
dir->signal(BNET_TERMINATE);
return NULL;
}

Expand Down

0 comments on commit adfecb4

Please sign in to comment.