Project

General

Profile

Actions

Bug #17862

closed

Silence Sinatra/rack startup warning "TCPServer Error: Address already in use - bind(2)"

Added by Anonymous over 7 years ago. Updated almost 6 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Core
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

This causes confusion about smart-proxy status.


Related issues 1 (0 open1 closed)

Related to Smart Proxy - Support #17707: after Foreman-Installer: puppet TCPServer Error: Address already in use - bind(2)Resolved12/16/2016Actions
Actions #1

Updated by Dominic Cleal over 7 years ago

  • Related to Support #17707: after Foreman-Installer: puppet TCPServer Error: Address already in use - bind(2) added
Actions #2

Updated by Anonymous over 7 years ago

Such an error message will not appear on rubies version 2.1 and higher. Socket.tcp_server_sockets method used by webrick to start listening for connections [1] now silently discards errors as long as one address out of multiple is available for listening on [2].
In previous versions of ruby webrick was handling these errors and was logging them as warnings [3]. As 2.0.0 is the last version of ruby that has this issue, I'd opt for leaving things as is.

[1] https://github.com/ruby/ruby/blob/ruby_2_1/lib/webrick/utils.rb#L75
[2] https://github.com/ruby/ruby/blob/ruby_2_1/ext/socket/lib/socket.rb#L452
[3] https://github.com/ruby/ruby/blob/ruby_2_0_0/lib/webrick/utils.rb#L90

Actions #3

Updated by Anonymous over 7 years ago

  • Target version set to 1.11.1
Actions #4

Updated by Anonymous over 7 years ago

  • Status changed from New to Rejected

Additional clarification

Actions

Also available in: Atom PDF