kooloveme / pebongo

Automatically exported from code.google.com/p/pebongo
1 stars 0 forks source link

Not Insert MongoDBCollection.save(bson); #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Not Insert MongoDBCollection.save(bson);

MongoDB log: AssertionException handling request, closing client connec
tion: 17133 SSL handshake requested, SSL feature not available in this build 

Lazarus 1.2.4 + Windows 8.1 + MongoDB 2.6.4 (64-bit).

Original issue reported on code.google.com by panthera...@gmail.com on 31 Aug 2014 at 12:50

GoogleCodeExporter commented 9 years ago
See 
https://github.com/mongodb/mongo/blob/master/src/mongo/util/net/message_port.cpp
// If responseTo is not 0 or -1 for first packet assume SSL

In order to make insert work the responseTo field of the header must be 0 or -1 
otherwise the server expects SSL encrypted data

Fix:

hdr.responseTo:=0;

Original comment by svpant...@gmail.com on 23 Feb 2015 at 2:38

GoogleCodeExporter commented 9 years ago
Thanks.

Original comment by panthera...@gmail.com on 27 Feb 2015 at 10:54

GoogleCodeExporter commented 9 years ago
Hi Peb,

You are welcome. Thank you for making your code available! I have been 
playing with it and found it quite well put together. It is also a 
simpler alternative to the original Delphi driver from 10gen, which 
relies on an external library (from a C driver). I also made a few 
changes of my own (e.g., to use the FPC json parser rather than the one 
you had originally, replaced synapse dependency with basic TCP socket 
calls) and fixed a few bugs and added some functionality - I am not sure 
if you were interested in maybe merging some of these changes into your 
original version of the library.

Anyway thank you again.

PS: I have read on FPC list serv that google code will be closing. I am 
sure you are aware of that and was wondering whether you are going to 
move the source code somewhere else. Alternatively, have you considered 
donating it to the FPC project? The MIT license you published it with is 
certainly compatible with FPC and FPC license.

Original comment by svpant...@gmail.com on 14 Mar 2015 at 5:49