Discussion:
[Sks-devel] Descriptive error meesages
Hendrik Visage
2018-01-29 18:09:42 UTC
Permalink
Good day,

I guess this is the point where I’ll have to start adding some extra digits to my body to count another programming language:

==> recon.log <==
2018-01-29 18:05:16 <recon as client> error in callback.: Sys_error("Connection reset by peer")

I’m seeing these type of error messages, which is great to know that it happened, but it begs the question: Who/what was the peer that reset the connection?
The reverse side (As I’m having the two separate servers talking) is then also: “Which client did I refuse, and ‘cause of what reasons?”

So let’s ask it this way: (1) advised OCAML reference & tutorial guides?
(2) Where should I start looking for these errors messages to help enhance them?

---
Hendrik Visage
HeViS.Co Systems Pty Ltd
T/A Envisage Systems / Envisage Cloud Solutions
+27-84-612-5345 or +27-21-945-1192
***@envisage.co.za
Gabor Kiss
2018-01-29 18:25:29 UTC
Permalink
Post by Hendrik Visage
2018-01-29 18:05:16 <recon as client> error in callback.: Sys_error("Connection reset by peer")
I?m seeing these type of error messages, which is great to know that it happened, but it begs the question: Who/what was the peer that reset the connection?
The reverse side (As I?m having the two separate servers talking) is then also: ?Which client did I refuse, and ?cause of what reasons??
So let?s ask it this way: (1) advised OCAML reference & tutorial guides?
(2) Where should I start looking for these errors messages to help enhance them?
This is a kernel error code. It is not related to any programming language.

$ errno 104
ECONNRESET 104 Connection reset by peer
$

I guess a TCP connection was terminated by the remote side.
It is absolute legal. :-)

If you need more information look around socket programming on the web.

Regards

Gabor
Hendrik Visage
2018-01-29 18:52:38 UTC
Permalink
Hi Gabor,
Post by Gabor Kiss
Post by Hendrik Visage
2018-01-29 18:05:16 <recon as client> error in callback.: Sys_error("Connection reset by peer")
I?m seeing these type of error messages, which is great to know that it happened, but it begs the question: Who/what was the peer that reset the connection?
The reverse side (As I?m having the two separate servers talking) is then also: ?Which client did I refuse, and ?cause of what reasons??
So let?s ask it this way: (1) advised OCAML reference & tutorial guides?
(2) Where should I start looking for these errors messages to help enhance them?
This is a kernel error code. It is not related to any programming language.
$ errno 104
ECONNRESET 104 Connection reset by peer
$
I guess a TCP connection was terminated by the remote side.
It is absolute legal. :-)
Right and wrong as you’ve missed my issue etc.
Post by Gabor Kiss
If you need more information look around socket programming on the web.
Programmed that myself a bunch of times, but based on the messages seen, the (pseudo code) of what happened look like this in the current codebase:

socket=connect(remote_addr,port)
if socket <=
then
print systemError()
else
send_data(socket)
fi

Instead what I would liked to see:
print “Attempted to connect to {remote_addr) on {port} and received the following error: “ systemError()


---
Hendrik Visage
HeViS.Co Systems Pty Ltd
T/A Envisage Systems / Envisage Cloud Solutions
+27-84-612-5345 or +27-21-945-1192
***@envisage.co.za

Kim Minh Kaplan
2018-01-29 18:28:14 UTC
Permalink
Post by Hendrik Visage
==> recon.log <==
2018-01-29 18:05:16 <recon as client> error in callback.: Sys_error("Connection reset by peer")
I’m seeing these type of error messages, which is great to know that it happened, but it begs the question: Who/what was the peer that reset the connection?
The reverse side (As I’m having the two separate servers talking) is then also: “Which client did I refuse, and ‘cause of what reasons?”
Increase the verbosity, it will show the IP addresses. As for the
reason, it is often a peer that is already reconning with somebody
else.
--
Kim Minh.
Loading...