<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hello,<DIV><BR><DIV><DIV>Le 13 juin 07 à 10:58, Mickaël Rémond a écrit :</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">Hello,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>I am currently troubleshoting ODBC low level connection problems.</DIV><DIV>We are seeing case, when under high load the odbc:connect function is returning einval.</DIV><DIV>It very likely comes from the gen_tcp accept code.</DIV><DIV>Do you see any reason this code should fail ? Initial connection to the database is working fine. It happens on reconnect.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I am still investigating on this but I would like to get your feedback if you have any idea why it can happen.</DIV></BLOCKQUOTE></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Looked at the ODBC code and I do not see any valid reason for that to happen. einval is send by the Linux Kernel, and it seems to me that this hardly possible to come from Erlang.</DIV><DIV>The ODBC code does 2 listens (Returning ok with socket), and later on two accepts. One of the accept seems to fail with einval, which seems to mean that the socket is not listening.</DIV><DIV>Strange...</DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>-- </DIV><DIV>Mickaël Rémond</DIV><DIV> <A href="http://www.process-one.net">http://www.process-one.net</A>/</DIV><BR class="Apple-interchange-newline"></SPAN></DIV><BR></DIV></BODY></HTML>