After you add set_blocking(), call it rather than this.