IPC performance: Named Pipe vs Socket

Best results you’ll get with Shared Memory solution. Named pipes are only 16% better than TCP sockets. Results are get with IPC benchmarking: System: Linux (Linux ubuntu 4.4.0 x86_64 i7-6700K 4.00GHz) Message: 128 bytes Messages count: 1000000 Pipe benchmark: Message size: 128 Message count: 1000000 Total duration: 27367.454 ms Average duration: 27.319 us Minimum duration: … Read more

socket connect() vs bind()

To make understanding better , lets find out where exactly bind and connect comes into picture, Further to positioning of two calls , as clarified by Sourav, bind() associates the socket with its local address [that’s why server side binds, so that clients can use that address to connect to server.] connect() is used to … Read more

socket.emit() vs. socket.send()

With socket.emit you can register custom event like that: server: var io = require(‘socket.io’).listen(80); io.sockets.on(‘connection’, function (socket) { socket.emit(‘news’, { hello: ‘world’ }); socket.on(‘my other event’, function (data) { console.log(data); }); }); client: var socket = io.connect(‘http://localhost’); socket.on(‘news’, function (data) { console.log(data); socket.emit(‘my other event’, { my: ‘data’ }); }); Socket.send does the same, but … Read more

Official reasons for “Software caused connection abort: socket write error”

This error can occur when the local network system aborts a connection, such as when WinSock closes an established connection after data retransmission fails (receiver never acknowledges data sent on a datastream socket). See this MSDN article. See also Some information about ‘Software caused connection abort’.

How much overhead does SSL impose?

Order of magnitude: zero. In other words, you won’t see your throughput cut in half, or anything like it, when you add TLS. Answers to the “duplicate” question focus heavily on application performance, and how that compares to SSL overhead. This question specifically excludes application processing, and seeks to compare non-SSL to SSL only. While … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)