Closed vrou closed 10 years ago
Also 2 of my resmon checks spits out the following:
a4f4de35-8c29-422f-a7ce-d45d36de669c 192.168.69.3`resmon (192.168.69.3 [0]) short chunked read
Apparently the other HTTP check also gives the same error now, though it was good from the beginning.
Going back to the following commit, fixed the issues:
noit# show version build sysname: SunOS build nodename: recon01 build release: 5.11 build version: omnios-b281e50 build machine: i86pc run sysname: SunOS run nodename: recon01 run release: 5.11 run version: omnios-b281e50 run machine: i86pc bitwidth: 64bit version: revert.315b20fd6ae7d54b3efc582be3c109f4e777342d.1385074872
Can you try this:
diff --git a/src/eventer/eventer_SSL_fd_opset.c b/src/eventer/eventer_SSL_fd_opset.c
index 67bc00d..6629313 100644
--- a/src/eventer/eventer_SSL_fd_opset.c
+++ b/src/eventer/eventer_SSL_fd_opset.c
@@ -686,11 +686,11 @@ eventer_SSL_rw(int op, int fd, void *buffer, size_t len, int *mask,
switch(op) {
case SSL_OP_READ:
opstr = "read";
- if((rv = SSL_read(ctx->ssl, buffer, len)) > 0) return rv;
+ if((rv = SSL_read(ctx->ssl, buffer, len)) >= 0) return rv;
break;
case SSL_OP_WRITE:
opstr = "write";
- if((rv = SSL_write(ctx->ssl, buffer, len)) > 0) return rv;
+ if((rv = SSL_write(ctx->ssl, buffer, len)) >= 0) return rv;
break;
case SSL_OP_CONNECT:
No luck regarding both errors.
I can't repeat the problem against www.dr.dk on my OmniOS (or other) setup here.
Hi Theo, I will try this week, if it works for you it should also work for me.
Have just launched a vagrant setup based on the latest r151008 OmniOS release, and using sample noitd.conf file, and now I see the following output:
1b4e28ba-2fa1-11d2-883f-b9a761bde3aa labs.omniti.com`http (199.15.226.250 [60])
short chunked read
0d317f79-f032-4c84-969f-0bce026a4ebc www.dr.dk`http (159.20.6.6 [60])
code=200,rt=0.150s,bytes=135265,sslerror
noit# show version
build sysname: SunOS
build nodename: omnios-vagrant
build release: 5.11
build version: omnios-6de5e81
build machine: i86pc
run sysname: SunOS
run nodename: omnios-vagrant
run release: 5.11
run version: omnios-6de5e81
run machine: i86pc
bitwidth: 64bit
version: master.32d791199ea3658c4cd01ae2aca57ca7e6972467.1386309700
noit#
autoconf && ./configure CPPFLAGS="-I/opt/omni/include -I/opt/omni/include/amd64/mysql -I/opt/omni/include/libxml2" LDFLAGS="-m64 -L/opt/omni/lib/amd64 -R/opt/omni/lib/amd64 -L/opt/omni/lib/amd64/mysql -R/opt/omni/lib/amd64/mysql -L/usr/local/lib -R/usr/local/lib" CFLAGS="-g -m64" SHCFLAGS="-g -m64" --prefix=/opt/local/
Installed packages:
$ sudo pkg install \
system/header \
library/zlib \
developer/java/jdk \
developer/object-file \
developer/linker \
developer/library/lint \
library/protobuf-c \
library/protobuf \
library/libpq5 \
library/libssh2 \
library/libxml2 \
library/libxslt \
database/mysql-55/library \
library/apr \
system/library/security/libgcrypt \
gnu-make \
gcc48 \
autoconf \
system/library/math/header-math
So maybe there is a problem in my r151006 installation, have to look more into that. But the "short chunked read" is still spooking around, any ideas on this one?
I haven't seen this for a while now. closing issue.
Hi,
Just updated a noit in test setup, and saw the following. When doing a curl from the host to the above URL, it works.
The fun thing is, that the other HTTP check for some other URL works as it should with no issues.
noit# show check ccafe7f5-925f-4be9-975e-46c3722bd624 ==== ccafe7f5-925f-4be9-975e-46c3722bd624 ==== name: http [from module] module: http [inherited from dk01/web/@module] target: www.dr.dk resolve_rtype: prefer-ipv4 [inherited from @resolve_rtype] period: 60000 [inherited from dk01/@period] timeout: 30000 [inherited from dk01/@timeout] oncheck: [undef] filterset: default [inherited from @filterset] disable: [undef] config::code: 200 config::url: http://www.dr.dk/ target_ip: 159.20.6.22 currently: 00000060 idle next run: 23.567 seconds last run: 36.354 seconds ago availability/state: unavailable/bad status: zlib: data error feeds: 0
noit# show version build sysname: SunOS build nodename: recon01 build release: 5.11 build version: omnios-b281e50 build machine: i86pc run sysname: SunOS run nodename: recon01 run release: 5.11 run version: omnios-b281e50 run machine: i86pc bitwidth: 64bit version: master.57ac1eb735b4c8ba5716469dbc7666a0da073659.1385155891