configuration - What does the timeout in nerve signify? -


i'm trying discover few services using nerve.

while came across timeout configuration specified in nerve docs.

timeout: (optional) maximum time check can take; defaults 100ms 

however when @ examples provided, timeout mentioned "0.2".

does mean timeout these examples "0.2ms"? valid configuration timeout? or 0.2 considered 2 sec?

i went through code nerve , looks timeout configuration provided in nerve json read value , directly pass http client read_timeout without additional processing.

as per ruby documentation, value in seconds.
so 0.2 means 200ms.

i'm assuming nerve docs not updated or has mistake w.r.t documentation.

read_timeout[r]
number of seconds wait 1 block read (via 1 read(2) call). number may used, including floats fractional seconds. if http object cannot read data in many seconds, raises net::readtimeout exception. default value 60 seconds.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -