Skip to content

LibHTTP API Reference – httplib_unlock_connection()

httplib_unlock_connection( conn );


Parameter Type Description
conn struct httplib_connection * Connection to remove the lock from

Return Value



The function httplib_unlock_connection() removes the lock on a connection which was previously set with a call to httplib_lock_connection(). Locking may be necessary when using httplib_write() or httplib_printf() on websocket connections to prevent data corruption.

See Also