#3 Timeout when requesting a new free IPv6 range

Unstable (example)
closed-accepted
nobody
None
5
2014-10-27
2011-11-09
Jorrit Kronjee
No

Say you have a IPv6 /32 and say you want to request one free IPv6 /128 from that huge subnet and say you're requesting this through the SOAP API, then you might end up with a timeout similar to this one in your Apache error log:

[Wed Oct 05 15:11:14 2011] [warn] [client 84.35.153.8] Timeout waiting for output from CGI script /usr/local/HaCi/cgi-bin/HaCiAPI.cgi

After a little bit of debugging I think I found the root cause of the problem. HaCi tries to find all free subnets within that subnet and then returns one. Obviously it should just return the first one it finds. The attached patch should fix that, although it should be rewritten as it currently uses $HaCi::HaCi::q inside fillHoles()

Please advise.

Discussion

  • Jorrit Kronjee
    Jorrit Kronjee
    2011-11-09

     
    Attachments
  • larsux
    larsux
    2011-11-09

    Hi Jorrit,
    thanks for your patch. I'll have a look at it and implement it in HaCi.

    Greets,
    Lars

     
  • larsux
    larsux
    2014-10-27

    • status: open --> closed-accepted
    • Group: --> Unstable (example)