mongoc_write_concern_set_wtimeout()

Synopsis

void
mongoc_write_concern_set_wtimeout (mongoc_write_concern_t *write_concern,
                                   int32_t                 wtimeout_msec);

Parameters

write_concern

A mongoc_write_concern_t.

wtimeout_msec

A int32_t containing the timeout in milliseconds.

Description

Set the timeout in milliseconds that the server should wait before idicating that the write has failed. This is not the same as a socket timeout.