Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

Please fix nios2-gdb-server-wrapped

Would the authors of nios2-gdb-server-wrapped, _please_ set the SO_REUSE_ADDR option on the server socket before calling bind()? I'm getting really tired of sitting on my hands waiting while the gdb-server tells me it's unable to bind with an EADDRINUSE error. Everytime gdb-server dies or aborts, I can't do anything for TIME_WAIT seconds because I can't start a new gdb-server.

Better yet, point me to the source code so I can fix it myself and submit a patch.

"Using proprietary tools is like swimming in handcuffs."

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by grante@Nov 6 2006, 04:36 AM

    would the authors of nios2-gdb-server-wrapped, _please_ set the so_reuse_addr option on the server socket before calling bind()? i'm getting really tired of sitting on my hands waiting while the gdb-server tells me it's unable to bind with an eaddrinuse error. everytime gdb-server dies or aborts, i can't do anything for time_wait seconds because i can't start a new gdb-server.

    better yet, point me to the source code so i can fix it myself and submit a patch.

    "using proprietary tools is like swimming in handcuffs."

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=19192)

    --- quote end ---

    --- Quote End ---

    Maybe you should file a service request,

    https://mysupport.altera.com/eservice/ (https://mysupport.altera.com/eservice/)
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    This is still an (annoying) problem that could be easily fixed by altera.