This version (2017/05/27 13:44) is a draft.
Approvals: 0/1

[11:57:03] <timte> When I try a really simple embedded vertx 3 http server, it always takes about 1000 ms from the request handler starts until the end handler starts.

[12:01:33] <timte> If I don[unknown:rsquo]t use the endHandler() it fast

[14:48:01] <cristianmiranda> Hi guys,

[14:48:02] <cristianmiranda> I have a mongoDB API related question. I need to do a query filtering by a date, the thing is that the date is in this format: “YYYY-MM-DDTHH:mm:ss.mmm”

[14:49:20] <cristianmiranda> MongoDB documentation says that I can just do .find({myDate : {“$gte” : (new Date(timeInMillis))}}) and that the mongo shell wraps the Date object with the ISODate helper.

[14:50:25] <cristianmiranda> The thing is that Vert.x JsonObject doesn't allowe me to do that since it wraps the new Date with double quotes and it doesn't work for mongo. I also tried to build the json without the double quotes but it doesn't work when doing the query.

[14:50:26] <cristianmiranda> Any ideas?

[14:50:26] <cristianmiranda> Thanks in advance :)

[15:17:59] <cescoffier> cristianmiranda: ping pmlopes - he is making modification around dates

[15:18:29] <cristianmiranda> cescoffier: Cool! Thanks

[15:19:10] <cristianmiranda> pmlopes: Hi, are any of these modifications related to filtering? Please let me know if you need more info about the issue.

[15:19:54] <pmlopes> hi cristianmiranda, to use dates you should use the notation {$date: “ISOString”} e.g.: {“now: {$date: “2015-07-23T13:19:00.000Z”}}

[15:20:40] <pmlopes> timestamps as longs are not implemented

[15:21:59] <cristianmiranda> pmlopes: Ok, so it would be something like: {“myDate” : {“$date” : {“$gte : “2015-07-23T13:19:00.000Z”}}} ?

[15:22:48] <pmlopes> humm i think the order is wrong, i think it should be {mydate: {$gte: {$date: “ISOString”}}}

[15:23:55] <cristianmiranda> Ok, I'll try that. Are long timestamps gonna be supported any time soon?

[15:28:37] <pmlopes> it is a matter of priorities and time :) it can be easily added, just need some time or some pull request :)

[15:29:25] <cristianmiranda> pmlopes: Can you point me to the right place where I could add it please? :) I'd be glad to contribute.

[15:32:03] <pmlopes> here is the documentation: http://docs.mongodb.org/manual/reference/mongodb-extended-json/

[15:32:20] <pmlopes> and here is where it needs to be added: https://github.com/vert-x3/vertx-mongo-client/blob/master/vertx-mongo-client/src/main/java/io/vertx/ext/mongo/impl/codec/json/JsonObjectCodec.java

[15:33:36] <cristianmiranda> Thanks!, I see what I can do and will create a pr :)

[15:34:08] <pmlopes> so basically the last 2 methods read/writeDateTime assume the format {$date: String} while it should support: {$date: String} or {$date: {$numberLong: “long as string”}} or {$timestamp: {t: int, s: int}}

[18:14:28] <mark> Looking for ideas. I know at this point it can't be a Vert.x issue. But this is what is happening. On our Flash client, connecting to our game-server via standard NetSocket. Currently we receive data from the socket, we even send data to the socket. I see it on ngrep network traffic that it went out. But on the Flash side it doesn't get it. Any ideas why this might happen. Now the Flash side works on our Vert.x 2 code branch. Also the Mac Mobile cl

[18:14:28] <mark> ient works on both our Vert.x 2 and 3 code branches using the exact same NetSocket type connection. I ran out of ideas, so hoping someone might have one

[19:58:36] <temporalfox> mark did you try with a TCP sniffer like wireshark on both sides ?

[23:18:28] <mark> “mark did you try with a TCP sniffer like wireshark on both sides ?” That is what ngrep does. I can never read WireShark, ngrep is pretty json.

[23:18:31] <mark> T ::1:1234 → ::1:54163 [AP]

[23:18:31] <mark> {. “result” : {. “bot” : false,. “updateURL” : “update.hdpoker.com”,. “fingerprintID” : “21a123ec-6670-409e-9e08-3eca59791d9d”,. “forceDisconnect” : false,. “ttl” : 86399984,. “use

[23:18:32] <mark> rContext” : {. “displayName” : “Mark S.”,. “avatarID” : “c49f37b3-3ec0-4182-b86b-2d27ec22a081”. },. “version” : “1.0.0”. },. “action” : “authenticate”,. “message” : “Authenticated”

[23:18:34] <mark> ,. “status” : “ok”.}

[23:18:36] <mark> ##

[23:18:38] <mark> T ::1:1234 → ::1:54163 [AP]

[23:18:39] <mark> {. “event” : “casinoPing”,. “ids” : {. “eventID” : “fcd29938-c1d3-437e-b2b0-e80307afd860”. },. “nums” : {. “qosRating” : 4. }.}

[23:18:42] <mark> ##

[23:19:21] <mark> So that is listening in on port 1234. And the client is Flash running inside Facebook, but connecting to my localhost servers.

[23:20:00] <mark> So that is in the middle, I'm not sure how say connect to each side?