Menu

#3 "cannot open server socket" should report reason

Unstable (example)
accepted
Tomo M
None
5
2019-02-09
2019-02-07
No

When the listening port is already bound to (in my case: an accidentally running background copy of srelay), srelay reports "cannot open server socket". I find it more enlightening if the OS reason is reported.

This can be achieved with strerror, or "%m", as used in other parts of the code.

Simple patch (from git-format-patch) attached.

1 Attachments

Discussion

  • Tomo M

    Tomo M - 2019-02-09

    serv_init() is external and %m may not be accurate error cause, but better than nothing.
    thanks.

     
  • Tomo M

    Tomo M - 2019-02-09
    • status: open --> accepted
    • assigned_to: Tomo M
     

Log in to post a comment.