Made operation timeout configurable and added logging if messages exceed max size

#2704