lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 26 Jan 2011 14:35:29 +0200
From:	denys@...p.net.lb
To:	Daniel Baluta <daniel.baluta@...il.com>
Cc:	<netdev@...r.kernel.org>
Subject: Re: 40k+ outbound connections and bind() problem

 On Wed, 26 Jan 2011 14:23:44 +0200, Daniel Baluta wrote:
> Hi,
>
> On Wed, Jan 26, 2011 at 2:14 PM,  <denys@...p.net.lb> wrote:
>> I am running server (TCP accelerator), which is initiating more than 
>> 40K
>> connections.
>> Each instance of server bound to separate IP, and each of them 
>> handling
>> around 5-10K connections.
>> At moments, when i have excessive connect/disconnect events if i try 
>> to
>> establish connection even from IP is not used,
>> during bind() i am getting errno "Address already in use".
>> What can be the issue?
>> Will it help if i increase in kernel hardcoded limit from 64K TCP 
>> bind hash
>> entries to higher values?
>
> Please provide more information. What kernel version are you using?
> Are you  binding on a SO_REUSEADDR socket right?
 Latest stable, 2.6.37

 No, but trying with it now. At same time i think it is not correct, if 
 i try to bind to "unused" for any connections IP, and it will return 
 such error.
 It is not listening socket, it is outbound connection
 s = socket(...)
 memset(&name,0x0,sizeof(name));
 name.sin_family=AF_INET;
 name.sin_addr.s_addr=s_stx->src_ip;
 name.sin_port=0;
 bind()
 connect()

 Now i will try to put between socket and bind
 setsockopt(netsocket,SOL_SOCKET,SO_REUSEADDR,(void*)&tmpint,sizeof(tmpint));

 But IMHO it is not very correct for outgoing connections.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ