[#HTTPRemoteClient-MaybeDisconnect] = xref:HTTPRemoteClient.adoc[HTTPRemoteClient]::MaybeDisconnect :relfileprefix: ../ :mrdocs: Flag the client for disconnection if it is idle past the timeout or a global disconnect is requested. == Synopsis Declared in `<httpserver.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool MaybeDisconnect( std::chrono::time_point<SteadyClock> now, std::chrono::seconds rpcservertimeout, bool disconnect_all); ---- == Return Value true if the client was flagged for disconnection. == Parameters [cols="1,4"] |=== | Name| Description | *now* | The current time used to evaluate the idle timeout. | *rpcservertimeout* | Idle duration after which the client should be disconnected. | *disconnect_all* | Whether all clients are being disconnected during shutdown. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#