HeinleinSupport / olefy

olefy - oletools verify over TCP socket
Apache License 2.0
43 stars 7 forks source link

Ping? Pong! - Health check via TCP #7

Closed andryyy closed 4 years ago

andryyy commented 5 years ago

Feature request for a little "ping? pong!" event via TCP to check if olefy is still alive.

andryyy commented 4 years ago

Merci!

andryyy commented 4 years ago

I think I miss something here:

olefy-mailcow_1      | olefy INFO eof_received <> 4 bytes (stream size)
olefy-mailcow_1      | olefy ERROR eof_received <> Protocol ERROR: no OLEFY/1.0 found
olefy-mailcow_1      | olefy INFO eof_received <> ('172.22.1.8', 57346) response send: b'[ { "error": "Protocol error" } ]'

I tried a simple PING, but also tried with the protocol + PING and protocol, header + PING. It never PONGS me back. :)

c-rosenberg commented 4 years ago

Sorry. c&p error

https://github.com/HeinleinSupport/olefy/commit/23ab415f997cfe2b88c231d90adc9fc99fe0b374

`echo PING|nc -q1 127.0.0.1 10050

PONG#`

andryyy commented 4 years ago

Thanks!