[master] Use constants for connection timeout and thread names