« first day (3397 days earlier)      last day (383 days later) » 

2:31 AM
"okay, full disclosure... we're not that great. but nevertheless, you suck."
 
 
10 hours later…
12:15 PM
@giuliolunati Except for the zipped part considering Rebol is small ;-) (Ah I get it the zip is not to shrink but to collect everything)
 
 
4 hours later…
4:02 PM
@HostileForksaysdonttrustSE I like this one better youtube.com/watch?v=8Gv0H-vPoDc
 
 
2 hours later…
5:34 PM
@GrahamChiu the problem with the network code is that READ case of 0 means orderly disconnect, and is not handled in the code:
51
A: Can read() function on a connected socket return zero bytes?

Sergey KurenkovWhen a TCP connection is closed on one side read() on the other side returns 0 byte.

We should presumably translate that into a distinct signal.
Oh, it does, but just after. It needs to not send the READ of 0 in the gracefully closed case.
 
 
2 hours later…
7:08 PM
@rgchris @GrahamChiu I have to admit I don't really understand what the network schemes are supposed to be doing. Why when you have gotten a READ event notification, is it then doing read client ? You're getting a notification for the read, the information you have available is in client/data...what's that for?
Is that to kick off another read asynchronously... e.g. you wouldn't know you had more data otherwise?
 
0
Q: redis mem_fragmentation_bytes is showing negative value

James XuIn a Redis 5.0.4, I am seeing below from redis info rss_overhead_ratio:0.01 rss_overhead_bytes:-10624245760 mem_fragmentation_ratio:0.01 mem_fragmentation_bytes:-10616819168 THe negative value for both mem_fragmentation and rss_overhead is not making sense. Does anyone know why is this?

 
 
2 hours later…
8:54 PM
@HostileForksaysdonttrustSE Yes. If you get a read event that indicates there's data in the client/data buffer. If there is no terminating sequence in the data, then you need to check for more data by doing a read (v) on the port. So, what was happening was a read event on close was being generated. The code looked for a terminating sequence but didn't find it so assumed more data was coming. And so did a read (v) on the port which then crashed.
It's looking good now that you've removed the extraneous read event
 
@GrahamChiu Well, I don't know about the design being any good, but that should be fixed now.
 
Seems to be fixed
I can't crash the httpd server using my r2 code at least, and so far with the trap I had in place, it's been running for a few days now surviving all the hostile elements trying to exploit all the usual web servers
 
Think I found the source of this other issue, trying to fix it.
 
@HostileForksaysdonttrustSE I think that bug exists in the R2 code as well
 
Generally speaking, the nature of asynchronous failures wasn't done clearly...like you make an asynchronous request and then an error happens. But when the error happens could be during any other WAIT. We aren't clearly attaching the errors to live with the ports where the error belongs, and keeping it held to report if-and-when it matters.
So you can read localhost, it can get a couple of cascaded problems on it, but when you later ask to read rebol.com that not-yet-processed error can be raised during that read.
Problems of this nature existed before, but a change I made might have made it worse...because I was trying to make it stylistically that code in the "device" layer could just use ordinary FAILs like the rest of the system does. However, those fails should be trapped and attached to the ports they apply to.
It's a bit tough, because when you've got several open ports and you say "wait 10", during those 10 seconds a lot of events could happen and there could be errors on more than one of the port.
 
9:02 PM
this has been around for 10 years
at least
I've seen these unprocessed events appear as soon as you start the event system
People have suggested using libevent but I have no idea ...
 
Well, in this case of the synchronous reads, really it is a case of needed to take the defective connection and remove it from the event queue. Once you're disconnected and have your failure, it shouldn't still be sitting there causing more errors. I just changed that.
The failed request wasn't being removed so it just perpetually created errors every time you tried to read after a failure to connect.
The bigger issue is just "how do we systemically deal with asynchronous failures".
 
how do other people deal with this issue?
@HostileForksaysdonttrustSE is there an image of a successful build number generated at all?
with travis?
I want to link to a static image of the latest successful build hash/date
 
@GrahamChiu When you make an asynchronous request you pass it a callback. The callback has an error parameter, that tells you what the error was.
read-async http://example.com/index.html func [data [<opt> binary!] error [<opt> error!]] [if error [...] else [...]]
 
9:18 PM
So, every asyn action needs a handler?
 
That's the raw node.js style of things, but then there is some syntactic sugar, which we might do as read http://example.com/index.html then [data err] => [...]
 
there's a heap of async events occurring in a http read
 
9:45 PM
@GrahamChiu Okay, how many more network annoyances need tending before you're unblocked and I can do something that doesn't make me want to poke my eyes out...?
 
@HostileForksaysdonttrustSE I'm unblocked now
as far as I know
 
Woo
I guess I will go ahead and start the redbol repo up
 
I'm still thinking of the design of course
and whether if we keep the same format as this chat we can just grab all the messages from here unchanged
if we had kept them in the first place of course which we havent
 
If people have any Rebol2 (or, Red?) scripts they actually still use on a day to day basis, it's probably best to get those working, as opposed to picking scripts at random off the archive.
 
but they arrive as JSON messages
 
9:48 PM
@Edoc says he's off Rebol2 now, but presumably @rgchris and @GrahamChiu are using Rebol2 for something. How about you, @ingo? Any Rebol2 tools around that aren't GUI-based?
 
@HostileForksaysdonttrustSE Any r2 code I'm using has a GUI
otherwise I've ported any scripts to r3 already
 
10:03 PM
If you're looking for blocking work, then we still can't read our own forum
>> read forum.rebol.info
(i) Info: use WHY for error information
** Error: Handshake failure - no supported cipher suite available on server
** Where: fail if if if parse-messages parse-response while tls-read-data switch _ wake-up if while _ wait any do-commands switch _ wake-up if while _ wait while sync-op else _ read console
** Near: [
    fail [select alert-descriptions data/2 ...] ~~]
** Line: 565
 
@GrahamChiu All the protocols are using the elliptic curves, we haven't put that in yet.
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (0xc02f)   ECDH secp384r1 (eq. 7680 bits RSA)   FS	128
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (0xc030)   ECDH secp384r1 (eq. 7680 bits RSA)   FS	256
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 (0xc027)   ECDH secp384r1 (eq. 7680 bits RSA)   FS   WEAK	128
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA (0xc013)   ECDH secp384r1 (eq. 7680 bits RSA)   FS   WEAK	128
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 (0xc028)   ECDH secp384r1 (eq. 7680 bits RSA)   FS   WEAK	256
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (0xc014)   ECDH secp384r1 (eq. 7680 bits RSA)   FS   WEAK	256
 
@HostileForksaysdonttrustSE I know :(
 
Sigh, well, I can look around and see if there's some easy isolated C file for doing it
 
We are going to need ECDHE anyway I presume for https server mode in the future
 
10:26 PM
@HostileForksaysdonttrustSE I think that's the one that's not been "enhanced" by the NSA
In cryptography, Curve25519 is an elliptic curve offering 128 bits of security and designed for use with the elliptic curve Diffie–Hellman (ECDH) key agreement scheme. It is one of the fastest ECC curves and is not covered by any known patents. The reference implementation is public domain software.The original Curve25519 paper defined it as a Diffie–Hellman (DH) function. Daniel J. Bernstein has since proposed that the name Curve25519 be used for the underlying curve, and the name X25519 for the DH function. == Mathematical properties == The curve used is y...
 
Hm. According to that you should call the function that does the calculating "X25519"
 
10:53 PM
Another thing we don't currently support, "GCM":
In cryptography, Galois/Counter Mode (GCM) is a mode of operation for symmetric-key cryptographic block ciphers widely adopted thanks to its performance. GCM throughput rates for state-of-the-art, high-speed communication channels can be achieved with inexpensive hardware resources. The operation is an authenticated encryption algorithm designed to provide both data authenticity (integrity) and confidentiality. GCM is defined for block ciphers with a block size of 128 bits. Galois Message Authentication Code (GMAC) is an authentication-only variant of the GCM which can form an incremental message...
So ECHDE-RSA is a hybrid which uses RSA keypair generation but then exchanges the keys over ECHDE...but after this negotiation it does the AES streaming encryption the same way? I think?
 
11:48 PM
@HostileForksaysdonttrustSE I have no idea too!
 
Well worst case scenario I can just look at what this tiny TLS c code does with it.
I'm just kind of guessing for starters
 

« first day (3397 days earlier)      last day (383 days later) »