f0a30d9b59
was passing an int to something expecting a "struct timeval". I've guessed at a timeout to replace it with..