added socket timeout to catch hung post requests