« first day (2477 days earlier)      last day (2463 days later) » 

6:00 PM
@BenFortune omg that one gave it a stroke lol
 
so natural
 
Anyone know?
 
i still don't understand what your goal is
 
"polymorhphicsally" is even better
 
you can't kill one request from another,
 
6:01 PM
it just chokes in the middle
 
I wish people tried to hex my servers
 
@KevinB
I want to kill them polymorthically
 
clearly I need to explore polymorphystitialism
 
with the same function
 
there's that word again
that i still dont understand
 
6:01 PM
How I see @Tobiq trying to solve his problem cdn.shopify.com/s/files/1/0271/3585/products/…
 
@Tobiq can you provide an example in pseudo-code?
 
polymorphism means that they share a common function / value or what ever so u can use the same thing on them
i already provided pseudocode THAT YOU TRASHED
 
but what does that have to dowith your problem...
 
@Tobiq ask a question on main.
That's what it's there for.
 
6:02 PM
freelancer → freelancing
contractor → contracting
? → consulting
 
@BenFortune Perfect.
 
    I want this:

https.get(URL, killConnection)

http.get(URL, killConnection)

http.createServer((req,res)=>killConnection(req) )

killConnection = req => {

    /// how polymorhphicsally kill conection?

}
 
@towc contractor...
 
@towc consultant
 
oops
 
6:02 PM
@towc consultant 😋 ^
 
req.end
 
oh! right! Thanks
 
I read those in the wrong order dammit
 
@KendallFrey a Consultant could be a Contractor though!
 
6:03 PM
@KendallFrey I actually had a hard time writing it out because I confused the two as well
 
in the metapolymorphicism world even.
 
lmao
 
req.end isnt a functoin @KevinB
 
...
 
@Loktar You know I'm copying every one of these into TTS
 
6:04 PM
lol
 
@KendallFrey floccinaucinihilipilification
 
> functoin - "funkt-win"
lol
 
@BenFortune It nailed it
 
glorious
function, is that like bitcoin?
 
6:05 PM
Its a function that you call to end complete your request, not kill connection
and thats http request only
not polymorhphistic
 
@Tobiq Both
@Tobiq Wrong
 
@BenFortune I've never seen someone misspell functoin before
 
@Tobiq Polymorphic
 
@KendallFrey i do it like twice a day
 
lol it really has a problem with "hph"
 
6:06 PM
you use req.write and req.end to form request, not kill the connection
 
The HTTPS docs talk about how most classes have the same contract as HTTP.
 
it's almost as if you're trying to find two different functions that happen to have the same name that do two very different things.
 
@BenFortune You use the word functoin twice a day?
 
No
 
@Tobiq Both.
 
6:06 PM
in our work chat, probably
 
but it's not even a word
 
Req.end finishes your request, and then you start receiving the response, I want to KILLL the connection so i NO Longer get the response
 
Dec 14 '12 at 15:49, by rlemon
function functoin(argumnets) {
    var argmunets = argumnets || arguments,
    retunr = argmunets[0+1-2+1]+(arguments.length>0?arguments[1]:argmunets[argumnets.length]);
    return retunr;
}
 
@Tobiq But you said you wanted to respond with 413
 
no i said in the case of 413
not i want to respond with 413
 
6:08 PM
in the case of a 413, the connection is already ended...
 
no
 
> retunr - retune-ver
 
I see
No, he's right, req.end() doesn't help there
 
I told you
 
.abort() then
 
6:09 PM
your application firewall should be handling that
 
That ^
Use req.abort()
 
nginx and most others have sensible (10MBish) defaults
 
Thats http request only
 
@Tobiq Are you sure?
 
yes i read docs
i dont just randomly ask
3
withhout research
 
6:10 PM
clearly
 
The HTTPS docs only describe how it differs from HTTP
The two are almost the same
 
omfg.
Im not READING HTTPS DOECS
 
user1596138
lol
 
So I say again, try it in actual code
 
we know
 
6:11 PM
IM REading http docs
 
to have a clue about how it works, you need to read all the networking RFCs
 
the HTTPS docs note that most of the classes have the same contract
 
why r they continuing to say https is the same
 
the HTTP docs may as well
 
because it's mostly the same API
 
6:12 PM
yes but the question is nothing to do with https
 
@Tobiq Because you keep saying that req.abort() is http only
 
request*
theres http.get and http.createserver
 
And we're telling you that https is similar to http so that there's a good chance that both have the .abort() method
 
@MadaraUchiha 99% working, I just am trying to figure out how to push params back to response and im done
 
I already knew that... I said http request only
 
6:12 PM
that's a lively friday
 
@Tobiq Did you?
10 mins ago, by Tobiq
    I want this:

https.get(URL, killConnection)

http.get(URL, killConnection)

http.createServer((req,res)=>killConnection(req) )

killConnection = req => {

    /// how polymorhphicsally kill conection?

}
 
as in it wont work in server, only http.get
 
@Tobiq That's definitely not what you said.
 
@BenFortune ????
 
I ran out of time, ttyl
 
6:13 PM
wait
 
@Tobiq You don't understand what you wrote?
 
before you go, how polymorhphicsally kill conection?
 
dude
lol
 
req.abort is only request
 
6:14 PM
!!riot
 
╯°□°)╯┻━┻
 
not sure if troll or not
 
not server
 
@KamilSolecki watch your fingers
 
I'm pretty sure he's trolling...
 
6:14 PM
why would i waste my time trollking
 
@KamilSolecki not, unfortunately
 
@Tobiq For starters, we corrected your use of the word "polymorphicsally" at least thrice now
 
@Tobiq if you're not trolling, please explain your question, clearly and concisely.
 
all im tryingh to do is kill both http REQUEST and http SERVER request
 
@ssube i still have 6 more than 007 says he has.
 
6:15 PM
So here's what you're going to do
 
16
Q: node.js: how to stop an already started http request

Michael MoellerWe use request to make http requests with node.js. We would like to give the user an opportunity to abort the request when he decides. That means we have to trigger the abort() from outside the request function. Maybe we can check an outside variable from inside the function. (We already tried to...

 
You're going to write a piece of code that we can run and see an error on unexpected behavior
 
@MadaraUchiha meet below my place in 8?
(minutes)
 
Or you can stop wasting all our times asking.
 
@BenjaminGruenbaum ill be there fam
 
6:15 PM
@BenjaminGruenbaum Aye.
 
Sterling r u trolling
thats the request library....
 
@SterlingArcher 2.9
 
@Tobiq response.socket.destroy()
 
@BenjaminGruenbaum Are we getting drinks?
 
@Trasiva And some fine burgers, too.
 
6:16 PM
@KendallFrey is that in the HTTP.GET(res) and HTTP.CREATESERVER(req) ??????
 
are they kosher
 
@BenjaminGruenbaum I prefer beers if you guys are ok with that
 
@SterlingArcher Nope.
 
glorious beer
 
6:17 PM
@Tobiq Read the docs on it
 
yasss gurl
 
i read the docs
 
I need that beer around here
 
it's right there in the docs
 
6:17 PM
@Tobiq Just try it and see
 
request.abort
 
@MadaraUchiha Really? Well, if you guys end up in the midwest ever again, you should holler. I'll spoil y'all with some amazeballs home made burgers.
 
It's like 5 lines of code
 
request being what http.get returns
 
@Trasiva if you come to my place? Sure
I'll have a beer with any of you
 
6:18 PM
@BenjaminGruenbaum I wanted to come to Chi-Town when you were there, but it didn't pan out with work.
 
@BenjaminGruenbaum Having said that, Joel didn't respond to my ping 😬 I'll try again via other routes soon-ish
 
socket.end may be what you want as well, depending on how forcefully you want to kill it
 
@MadaraUchiha please do
 
@KendallFrey with fire
much force
 
Right, I'm heading out now, see you soon @BenjaminGruenbaum
 
6:18 PM
wow
 
I'm debugging a Java memory leak
Cool, need to put pants
 
oh my god.

http.get returns a (res).

http.createServer returns (req,res)

I want to kill get.res and createserver.req with same function.

get.res.abort is an option . CREATESERVER.REQ.ABORT IS NOT A FUCNTION
 
Should probably do that
 
very orbitly destroyed
 
Not willing to read docs, check
 
6:19 PM
@BenjaminGruenbaum Just do the no pants dance
 
@Tobiq Why are you so obsessed with it being the same function?
 
I use orbital satellites to kill my servers. Once and for all.
 
polymorphism!
 
@Tobiq you're mis-interpreting what i'm telling you.
 
oh my god
 
6:19 PM
K, have pants, heading out
 
var request = http.get(...);
request.abort();
 
> fucntion - "fuckin' chin"
 
that's how you abort a request.
 
6:20 PM
@Tobiq createServer's req has nothing to do with the http.get req.
 
@Tobiq Yes, that's what it's called, but why?
 
@KevinB yes but i also want to kill the server quest.... u cant do that with it
 
you can't abort a request in the callback that gets called after it's done.
 
no...
 
@KevinB At that point it becomes infanticide
 
6:21 PM
because you can do req.on("data") inside the http server
the request isnt done.
 
yes it is
the response isn't
 
i want to kill it as soon as i get too much data
 
the request is done
 
what r u talking about
 
there are two parts to a reqeust
 
6:21 PM
@KamilSolecki I don't kill my servers, I want my food served within two hours
 
the request, and the response
 
welp request is done, its just that the response hasn't come fully
 
http.createServer((req,res)=>//req is not completeed because you can do req.on(data))
 
Yes, but if you kill the http.get request, it wont go through. If the request does go through, you need to measure the packet and then kill it in req.on
A killed request yields no response
 
6:22 PM
maybe you just wanna partition your requests in packets?
 
So idk why you want to kill http.get, since once the request is fired, it's fired. You want to throttle the response
 
I guess maybe the idea is DoS protection?
 
I dont think you understand
 
aborting the request is one of the two things you'd need to do to kill all processing of a request. the second would be killing the request within the callback to createServer. these two things can't be done with a single function, that doesn't make sense.
 
@Tobiq I'm not convinced you do either
 
6:24 PM
4
Q: How to get byte size of request?

Cort3zI am making an API in Node.js Express which might get large requests coming in. I would really like to see how big the request are. //.... router.post('/apiendpoint', function(req, res, next) { console.log("The size of incoming request in bytes is"); console.log(req.????????????); //How to ...

 
We don't understand because you don't know how to explain anything
 
This might help, but it looks like it requires sockets
 
This is all i want to do. in both scenarios, i want to KILL CONNECTION
 
I already told him to use sockets
 
There's a header that shows the packet size, but apparently it's unreliable to an extent
 
6:25 PM
we've told you how to accomplish that in both scenarios
 
req.abort is only in http/s.get
 
Right
 
not on the server
 
@KevinB but he wants it polymorphiscallsyleri!
 
Stop typing in caps, it's not gonna make you sound more sensible lol
 
6:25 PM
and you use a different method to do it within the reqeust callback.
 
how?
and thats not polymorthistic
 
@SterlingArcher I BEG TO DIFFER SIR
 
thats very rude
 
but he wants it along came polly
 
i falgged moderator
i have to leave
 
6:26 PM
@SterlingArcher I can't CONTROL THE ᴠᴏʟᴜᴍᴇ ᴏғ my VOICE!
 
@KevinB hahah TTS really butchers that one
 
lol
 
@Tobiq don't waste their time
 
bye eevryeone
 
6:27 PM
o/
 
bye
 
@Tobiq Again, why does that matter?
 
0121do1
 
Don't come back, byeeeeeeeeeeeeeeeeeeeeeeeeee
 
o/ bye i need 1
 
6:27 PM
you know something happened when the whole chat is going haywire
 
i only need
bye bye
 
While we're on the topic, all I'm finding is packages on how to measure a variable or request object's size. How does that work, in theory?
The whole TCP packet thing throws me for a loop
 
There are a few ways. Packets aren't involved, luckily.
Ideally, you send the size ahead of time as a header, so the server can verify they've gotten the whole body.
 
> ideally
 
6:29 PM
Same on the returning side.
 
That means never.
 
so the request already knows the payload size
 
and it's not always accurate
 
It might.
 
6:29 PM
you can set the header when you send the request
 
So.. the client can send a request size that you shouldn't trust. :)
 
in http, like html, nothing is certain
 
by having the control to do so, you can set it incorrectly
 
That's just as bad as playing "guess how much I weigh now" on Tinder
 
is that a thing? like in the app?
 
6:30 PM
should be.
 
minigames should be a thing
 
Right, the socs said it isn't reliable. So what is a reliable way to get a response size in bytes/kb etc?
lol socks
docs
 
if you guess correctly, and its more than it was, it should swipe left automatically
 
Solve this sudoku if you want to netflix and chill with me
 
waiting for the whole response, then measuring it
 
6:31 PM
@SterlingArcher you count up the bytes as they go
 
I'm bad at sepukus
 
lol part of that polymythical practice eh @SterlingArcher, ask the socks for their wisdom.
 
@Luggage deal breaker, I'm not interested in sudoku-doers
 
I was just trying to think of a test for minimal intelligence.
 
@ssube I assume that's reading the bytestream?
 
6:31 PM
@SterlingArcher Content-Length is the only way to know ahead of time, and anyone can lie about it.
 
seppuku is my favourite past time
 
@Luggage exactly
 
@Loktar lmao there's gonna be so many poly words for the next day or so
 
pastime
 
Slitherlink (also known as Fences, Takegaki, Loop the Loop, Loopy, Ouroboros, Suriza and Dotty Dilemma) is a logic puzzle developed by publisher Nikoli. == Rules == Slitherlink is played on a rectangular lattice of dots. Some of the squares formed by the dots have numbers inside them. The objective is to connect horizontally and vertically adjacent dots so that the lines form a simple loop with no loose ends. In addition, the number inside a square represents how many of its four sides are segments in the loop. Other types of planar graphs can be used in lieu of the standard grid, with varying...
 
6:32 PM
@KendallFrey yeah they said that already, but you can get a reliable read as it comes, right?
 
whatever
 
1 min ago, by ssube
@SterlingArcher you count up the bytes as they go
 
@SterlingArcher sure, but there are risks with that.
 
You just read the bytes in a polystreamific manner
 
Also there may not be a Content-Length available, for example with chunked transfer
 
6:33 PM
If you have a 10MB cutoff, you might have to read 10MB of data before you can cut off an attacker.
 
@SterlingArcher You can polysuckmyass
 
ohhhhhh
 
@ssube is that how overflows and shit work?
 
@BenFortune not overflows, that's just an OOM DOS
 
6:34 PM
overflows are when you try to put 10MB of data into a 5MB bucket and accidentally stomp on 5MB of code
that happens to be in the next bucket over
 
//i haz a bukkit
 
jokes on them, that sea clearly has waves
 
@SterlingArcher innocent eyes but why, what's the problem?
 
@SterlingArcher Hey. HEY. That man's a national treasure. He's a doctor, a soldier, a fireman, and countless other life saving jobs.
 

« first day (2477 days earlier)      last day (2463 days later) »