Le 1/31/14 11:17 AM, Hardik Kubavat a écrit : > Hi > > Is it good practice to bind multiple port in one IoAcceptor or create > object of different IoAcceptor for each port? > Currently I am working only on one type of message
If you are dealing with one single protocol, then there is no reason to use more than one IoAcceptor. In general, what I do is to use one IoAcceptor per protocol Im managing (for instance, in ApacheDS, I have 5 different IoAcceptors - one for LDAP, one for Kerberos, one for NTP, one for DNS and one for DHCP). Each IoAcceptor will default to nbCore+1 threads, which is ok on my dual core computer (I then have 15 threads used by the IoAcceptors). -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com
