Testing out fedor's SSL enhancements. You don't notice the difference... At first!
Once you adjust ciphers to disable ECDH, then you get the nice surprise.
Running an http server that acts as a proxy to an SSL server, all running on localhost
.
function mergePartials(partials) { | |
const types = []; | |
const resolvers = []; | |
for (const partial of partials) { | |
resolvers.push(partial.resolvers); | |
Array.isArray(partial.types) ? types.push(...partial.types) : types.push(partial.types); | |
} | |
addEmptyRootTypes(types, resolvers); |
'use strict'; | |
const Domain = require('domain'); | |
const create = function (initialState = {}) { | |
const domain = Domain.create(); | |
domain.state = initialState; | |
const enter = domain.enter; |
import org.eclipse.jetty.util.ssl.SslContextFactory; | |
import org.eclipse.jetty.server.Connector; | |
import org.eclipse.jetty.server.Server; | |
import org.eclipse.jetty.server.nio.SelectChannelConnector; | |
import org.eclipse.jetty.server.ssl.SslSelectChannelConnector; | |
import org.eclipse.jetty.webapp.WebAppContext; | |
public class TestServer { | |
public static void main(String[] args) throws Exception { |
const server = new RxServer(Http.createServer(), 3000); | |
server.flatMap( | |
//Read request content | |
({ request, response }) => { | |
return request.toArray().map((body) => { | |
request.payload = Buffer.concat(body); | |
return {request, response}; | |
}); | |
} |
let obj = { | |
value: 1 | |
}; | |
Rx.Observable.fromObserving(obj).filter((change) => change.name === 'value').doOnNext((x) => console.log(x)).subscribe(); | |
obj.value = 2; |
Testing out fedor's SSL enhancements. You don't notice the difference... At first!
Once you adjust ciphers to disable ECDH, then you get the nice surprise.
Running an http server that acts as a proxy to an SSL server, all running on localhost
.
'use strict'; | |
function attempt(fn) { | |
return Object.create({ | |
'fail': function (onError) { | |
try { | |
fn(); | |
} | |
catch (e) { | |
return onError(e); |
'use strict'; | |
var assert = require('assert'); | |
var https = require('https'), | |
fs = require('fs'); | |
describe('SSL Connection', function () { | |
var server, server_options; |
function Promisify(obj) { | |
var original = Object.getPrototypeOf(obj); | |
var Promise = function Promise() { | |
this._chain = []; | |
}; | |
Promise.prototype = Object.create(Promise, { | |
constructor : { |
/** | |
* Extend an Object from another Object. | |
* @param child | |
* @param parent | |
* @param proto - prototype mixins | |
* @returns {*} | |
*/ | |
function(child, parent, proto) { | |
//Constructor | |
var properties = { |