diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-04-20 23:30:33 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-04-20 23:30:33 +0000 |
commit | b235ae2ec9079a83fbd5b2d67d9fe262eeffae67 (patch) | |
tree | 3edb02d1c2a60caa4e2f80a1dfff8ffdac23340d | |
parent | 249860b2bfef3f0207e8f8de9a32352be0620da2 (diff) | |
download | ATCD-b235ae2ec9079a83fbd5b2d67d9fe262eeffae67.tar.gz |
.
-rw-r--r-- | ChangeLog-99b | 11 | ||||
-rw-r--r-- | ace/Asynch_Acceptor.h | 2 | ||||
-rw-r--r-- | ace/LSOCK_Acceptor.h | 4 | ||||
-rw-r--r-- | ace/OS.h | 4 | ||||
-rw-r--r-- | ace/SOCK_Acceptor.h | 4 | ||||
-rw-r--r-- | ace/TLI_Acceptor.h | 4 | ||||
-rw-r--r-- | ace/UPIPE_Acceptor.h | 1 |
7 files changed, 22 insertions, 8 deletions
diff --git a/ChangeLog-99b b/ChangeLog-99b index ef772de3f71..85d11bb2cce 100644 --- a/ChangeLog-99b +++ b/ChangeLog-99b @@ -1,3 +1,14 @@ +Tue Apr 20 18:25:45 1999 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu> + + * ace/{SOCK,TLI,LSOCK,Asynch}_Acceptor.h: Replaced the use of the + hard-coded backlog value of 5 with ACE_DEFAULT_BACKLOG. Thanks + to Irfan for motivating this. + + * ace/OS.h: Added a new (overriddable) macro called + ACE_DEFAULT_BACKLOG that's used to control the default number of + connections that can be accepted by an OS. The default value is + 5. + Tue Apr 20 18:22:00 1999 Chris Gill <cdgill@cs.wustl.edu> * ace/Map_T.i diff --git a/ace/Asynch_Acceptor.h b/ace/Asynch_Acceptor.h index 41f3ce435ea..57b57328fbd 100644 --- a/ace/Asynch_Acceptor.h +++ b/ace/Asynch_Acceptor.h @@ -52,7 +52,7 @@ public: virtual int open (const ACE_INET_Addr &address, size_t bytes_to_read = 0, int pass_addresses = 0, - int backlog = 5, + int backlog = ACE_DEFAULT_BACKLOG, int reuse_addr = 1, ACE_Proactor *proactor = 0, int validate_new_connection = 0, diff --git a/ace/LSOCK_Acceptor.h b/ace/LSOCK_Acceptor.h index 711e6561c5a..f5ee37e4667 100644 --- a/ace/LSOCK_Acceptor.h +++ b/ace/LSOCK_Acceptor.h @@ -44,14 +44,14 @@ public: ACE_LSOCK_Acceptor (const ACE_Addr &local_sap, int reuse_addr = 0, int protocol_family = PF_UNIX, - int backlog = 5, + int backlog = ACE_DEFAULT_BACKLOG, int protocol = 0); // Initiate a passive mode socket. int open (const ACE_Addr &local_sap, int reuse_addr = 0, int protocol_family = PF_UNIX, - int backlog = 5, + int backlog = ACE_DEFAULT_BACKLOG, int protocol = 0); // Initiate a passive mode socket. @@ -158,6 +158,10 @@ # define ACE_DEFAULT_TIMEOUT 5 # endif /* ACE_DEFAULT_TIMEOUT */ +# if !defined (ACE_DEFAULT_BACKLOG) +# define ACE_DEFAULT_BACKLOG 5 +# endif /* ACE_DEFAULT_BACKLOG */ + # if !defined (ACE_DEFAULT_THREADS) # define ACE_DEFAULT_THREADS 1 # endif /* ACE_DEFAULT_THREADS */ diff --git a/ace/SOCK_Acceptor.h b/ace/SOCK_Acceptor.h index 381100bd9bb..5f68e60030f 100644 --- a/ace/SOCK_Acceptor.h +++ b/ace/SOCK_Acceptor.h @@ -38,7 +38,7 @@ public: ACE_SOCK_Acceptor (const ACE_Addr &local_sap, int reuse_addr = 0, int protocol_family = PF_INET, - int backlog = 5, + int backlog = ACE_DEFAULT_BACKLOG, int protocol = 0); // Initiate a passive mode socket. @@ -48,7 +48,7 @@ public: int open (const ACE_Addr &local_sap, int reuse_addr = 0, int protocol_family = PF_INET, - int backlog = 5, + int backlog = ACE_DEFAULT_BACKLOG, int protocol = 0); // Initiate a passive mode socket. diff --git a/ace/TLI_Acceptor.h b/ace/TLI_Acceptor.h index 4525daf1dcb..20ce2575daa 100644 --- a/ace/TLI_Acceptor.h +++ b/ace/TLI_Acceptor.h @@ -53,7 +53,7 @@ public: int reuse_addr = 0, int oflag = O_RDWR, struct t_info *info = 0, - int backlog = 5, + int backlog = ACE_DEFAULT_BACKLOG, const char device[] = ACE_TLI_TCP_DEVICE); // Initiate a passive mode socket. @@ -61,7 +61,7 @@ public: int reuse_addr = 0, int oflag = O_RDWR, struct t_info *info = 0, - int backlog = 5, + int backlog = ACE_DEFAULT_BACKLOG, const char device[] = ACE_TLI_TCP_DEVICE); // Initiate a passive mode socket. diff --git a/ace/UPIPE_Acceptor.h b/ace/UPIPE_Acceptor.h index c1fbdb318d1..c14fedca21d 100644 --- a/ace/UPIPE_Acceptor.h +++ b/ace/UPIPE_Acceptor.h @@ -1,7 +1,6 @@ /* -*- C++ -*- */ // $Id$ - // ============================================================================ // // = LIBRARY |