Feature poll: Do you use the clientError event?

292 views
Skip to first unread message

Isaac Schlueter

unread,
Aug 29, 2012, 7:07:11 PM8/29/12
to nodejs
Do you use the clientError event?

Please choose one:

1. Yes, I use it all the time. Please don't change it ever, thank you.

2. I don't use it, but I'm aware of it, and I think I might someday.

3. I don't use it, and I think it's stupid.

4. The what now event?


Thanks.

Roly Fentanes

unread,
Aug 29, 2012, 7:47:35 PM8/29/12
to nod...@googlegroups.com, i...@izs.me
4

Mark Hahn

unread,
Aug 29, 2012, 7:49:43 PM8/29/12
to nod...@googlegroups.com, i...@izs.me
http://nodejs.org/api/http.html#http_event_clienterror

--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Mark Hahn

unread,
Aug 29, 2012, 7:50:45 PM8/29/12
to nod...@googlegroups.com, i...@izs.me
3

mscdex

unread,
Aug 29, 2012, 7:52:33 PM8/29/12
to nodejs
On Aug 29, 7:07 pm, Isaac Schlueter <i...@izs.me> wrote:
> Do you use the clientError event?
>
> Please choose one:

2.5 (I don't use it, but I'm aware of it, and I'm not sure yet if I'll
use it some day.)

Mark Hahn

unread,
Aug 29, 2012, 7:53:03 PM8/29/12
to nod...@googlegroups.com, i...@izs.me
What happens if there is a client error and you aren't listening for it?  Do you get a close or something?

Dan Shaw

unread,
Aug 29, 2012, 8:00:22 PM8/29/12
to nod...@googlegroups.com
:) 2.5 too: I don't use it, but I'm aware of it, and I'm not sure if
I'll use it some day.

Daniel Shaw
@dshaw

Marco Rogers

unread,
Aug 29, 2012, 11:08:28 PM8/29/12
to nod...@googlegroups.com, i...@izs.me
2.5. Never used it.

:Marco


On Wednesday, August 29, 2012 4:07:23 PM UTC-7, Isaac Schlueter wrote:

Shigeki Ohtsu

unread,
Aug 30, 2012, 1:12:53 AM8/30/12
to nod...@googlegroups.com

clientError on http.Server 2.5(I've never used before)
clientError on https.Server 2(I sometimes used for debug)

I think that clientError on https.Server is valuable to check SSL errors as

$node https_server2.js
ssl server listening on 8443
clientError: TLS session renegotiation attack detected.
clientError: TLS session renegotiation attack detected.
clientError: 3077781248:error:140760FC:SSL
routines:SSL23_GET_CLIENT_HELLO:unknown
protocol:../deps/openssl/openssl/ssl/s23_srvr.c:589:

refs.

http://nodejs.org/api/tls.html#tls_client_initiated_renegotiation_attack_mitigation

Tim Caswell

unread,
Aug 30, 2012, 11:04:29 AM8/30/12
to nod...@googlegroups.com
4
Message has been deleted

Christian Taltas

unread,
Aug 30, 2012, 5:11:55 PM8/30/12
to nod...@googlegroups.com
4
--

Christian TaltasCofounder and CTO
chri...@yupana.com | +1 415 562 6013
Yupana Systems, Inc.
yupana.com | +1 650 399 0000 ext. 102


Christian Tellnes

unread,
Aug 31, 2012, 6:40:57 AM8/31/12
to nod...@googlegroups.com
2.5

--
Mvh. Christian Vaagland Tellnes
http://christian.tellnes.com/

jg

unread,
Aug 31, 2012, 6:45:31 AM8/31/12
to nod...@googlegroups.com, i...@izs.me
2

dhruvbird

unread,
Aug 31, 2012, 8:57:07 AM8/31/12
to nod...@googlegroups.com, i...@izs.me
4 - didn't know it existed.

dhruvbird

unread,
Aug 31, 2012, 9:02:03 AM8/31/12
to nod...@googlegroups.com, i...@izs.me
So is this like a place where _every_ accepted connection's error is propagated (in case there is an error on the accepted connection)?

Also, what are the semantics? I mean does the error get propagated irrespective of the fact that it might be handled as an 'error' event on the specific 'req' (readablestream) object?


Ben Noordhuis

unread,
Aug 31, 2012, 9:37:53 AM8/31/12
to nod...@googlegroups.com
Yes and yes.

Bradley Meck

unread,
Aug 31, 2012, 11:10:20 AM8/31/12
to nod...@googlegroups.com, i...@izs.me
3

Hook into .on('request') or .on('connection') if you want it, thats how i do it already.

Eldar

unread,
Aug 31, 2012, 1:05:29 PM8/31/12
to nod...@googlegroups.com, i...@izs.me
4
Message has been deleted

dhruvbird

unread,
Sep 1, 2012, 8:19:55 AM9/1/12
to nod...@googlegroups.com
Plus, it would be interesting to know the motivation behind this use case and what scenario it was envisioned for. One thing that comes to mind is efficiency since every request will not have to have a handle to a function. However, apart from the most trivial of use-cases, do you think that passing a handle to the request (and/or) response objects would make this handler generally more useful?

Mariusz Nowak

unread,
Sep 1, 2012, 2:40:16 PM9/1/12
to nod...@googlegroups.com, i...@izs.me
4

Luke Arduini

unread,
Sep 2, 2012, 11:18:30 PM9/2/12
to nod...@googlegroups.com
2.5
Reply all
Reply to author
Forward
0 new messages