Restarting s2s may fail with Error starting: 5269 Address already in use (Bind failed)

Description

Openfire may sometimes attempt to restart its s2s port when certain config changes are made or perhaps updated SSL certs are configured.  This restart appears to be brittle and various latency / race conditions could cause this operation to fail like so:

 

 

 
Perhaps the restarting code should wait a bit on shutdown before attempting to start up the listener again.

Environment

None

Activity

Show:

Florian Schmaus January 1, 2020 at 11:10 PM

Sounds like you simply want to use SO_REUSEADDR.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created December 31, 2019 at 7:06 PM
Updated January 1, 2020 at 11:10 PM
Resolved January 1, 2020 at 2:14 AM