Skip to content

Commit

Permalink
lib: stored: remove leftover maxconnections in ndmp_tape.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
alaaeddineelamri authored and arogge committed Mar 9, 2023
1 parent f321325 commit 67e2adb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions core/src/lib/bnet_server_tcp.cc
Expand Up @@ -48,7 +48,7 @@
# include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
//#include <resolv.h>
// #include <resolv.h>
#endif

#ifdef HAVE_POLL_H
Expand Down Expand Up @@ -289,7 +289,7 @@ void BnetThreadServerTcp(
return;
}

listen(fd_ptr->fd, 50); /* tell system we are ready */
listen(fd_ptr->fd, kListenBacklog); /* tell system we are ready */
sockfds->append(fd_ptr);

#ifdef HAVE_POLL
Expand Down
2 changes: 2 additions & 0 deletions core/src/lib/bnet_server_tcp.h
Expand Up @@ -24,6 +24,8 @@
#include <atomic>
#include <functional>

constexpr int kListenBacklog = 50;

class ConfigurationParser;
class ThreadList;
class IPADDR;
Expand Down
8 changes: 3 additions & 5 deletions core/src/stored/ndmp_tape.cc
Expand Up @@ -167,10 +167,8 @@ void NdmpLoghandler(struct ndmlog* log, char* tag, int level, char* msg)
nis = (NIS*)log->ctx;
if (!nis) { return; }

/*
* If the log level of this message is under our logging treshold we
* log it as part of the Job.
*/
/* If the log level of this message is under our logging treshold we
* log it as part of the Job. */
if (level <= (int)nis->LogLevel) {
if (nis->jcr) {
// Look at the tag field to see what is logged.
Expand Down Expand Up @@ -1164,7 +1162,7 @@ extern "C" void* ndmp_thread_server(void* arg)
be.bstrerror());
# endif
}
listen(fd_ptr->fd, me->MaxConnections); /* tell system we are ready */
listen(fd_ptr->fd, kListenBacklog); /* tell system we are ready */
sockfds.push_back(fd_ptr);
# ifdef HAVE_POLL
nfds++;
Expand Down

0 comments on commit 67e2adb

Please sign in to comment.