Use defines for timeouts when reading messages

Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>