On Mon, Jan 6, 2014 at 10:28 PM, Steve B <[email protected]> wrote:
> Hi Steve,
>> a quick diagram of the query flow might help.
>> I didn't get the picture of your setup to be able to answer.
>>
> ----------------
> This example you gave:
>
>
>
>
>
> * local ok, sock = pcall(connect, host, 80, 0) if ok then
> sock:send('GET / HTTP/1.0\r\n' .. 'Host: ' .. host ..
> '\r\n\r\n') local reply = sock:recv() sock:close()*
>
> * -- now you can use reply*
> * end*
>
> - Would a user be able to sniff that connection, reason i ask is because
> in php (a old version) i use to use fopen and go to a remote host and i
> believe the user was able to "sniff" what site was being able to connect.
>
If you're talking about the "man in the middle", an observer on your
network intercepting network packets - then yes. Such an observer can see
what IP/ports are being connected to.
If you're using SSL, then the content of the conversation would be
impossible to decipher, cause the content would be encrypted. SSL is the
way to go for a secure service: it should be 1) an authentication mechanism
for a service, and 2) communication should be over SSL.
That said, it is impossible to hide IP/ports from an observer, therefore
there must be measures taken to build a reliable network serice:
proper redundancy
good monitoring & alerting
firewall to block offending subnets
properly geared operating systems (like SYN cookies support, tuned TCP
stack, etc)
load balancing
gradual service degradation mechanism
and so on
--------------------------------------------------------
>
>>
>> I plan to create a minimalistic, embeddable Javascript engine to serve as
>> a scripting engine,
>> and yes the idea is to have it small and fast. Initially, it will
>> implement only a subset of
>> Javascript standard plus interfaces needed for backend. That will
>> definitely be smaller then Lua.
>> File and socket IO, DB and subprocess interfaces seem like a good
>> foundation.
>>
>> Then i vote for the javascript engine :-D
> Is the javascript engine in the works already?
>
The rudimentary sketch at https://github.com/cesanta/v7
However I haven't decided for sure yet whether to go with JS or Lua yet.
--
You received this message because you are subscribed to the Google Groups
"mongoose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/groups/opt_out.