mysql master-slave dual master configuration

mysql dual primary configuration mysql dual masters are actually synchronous and subordinate to each other. Any one can perform the insert action The production environment is used very little, because there are still concerns about data consistency. The production environment is generally enough The configuration of 172.19.132.121 starts ...

Posted by misterph on Sat, 02 Nov 2019 08:19:58 +0100

Simple TCP communication model

  in TCP/IP protocol, "IP address + TCP or UDP port number" uniquely identifies a process in network communication, "IP address + port number" is called socket. int socket(int domain, int type, int protocol); success file descriptor, failure-1 Streaming socket: non frame synchr ...

Posted by westexasman on Mon, 28 Oct 2019 15:14:44 +0100

Detailed explanation of the execution order case of Pipeline's ChannelHandler in netty

I. Pipeline model of netty Netty's Pipeline model uses the responsibility chain design pattern. When the boss thread monitors that there is an accept event on the binding port, it instantiates the Pipeline for the socket connection, loads the InboundHandler and OutboundHandler into the Pipeline in order, and then mounts the socket connection ( ...

Posted by alexdoug on Fri, 25 Oct 2019 12:43:24 +0200

TP5+swoole to develop WebSocket online chat communication system

Swoole and thinkp5 develop WebSocket online chat communication system To use Swoole in ThinkPHP, you need to install the think Swoole composer package, provided that the system has installed the Swoole PECL extension. To install think swoole, execute the composer command in the project root directory of tp5: composer require topthink/think-swoo ...

Posted by Headache on Mon, 21 Oct 2019 21:54:36 +0200

Asp.net webapi pushes messages to clients through WebSocket to build a service that is both the server and the client

WebSocket is a single TCP Connect to full duplex Communication protocol. WebSocket communication protocol was approved by IETF As standard RFC 6455 and supplemented by RFC7936. WebSocket API Also be W3C Set as standard. WebSocket makes the data exchange between the client and the server easier, allo ...

Posted by omprakash on Mon, 21 Oct 2019 17:05:53 +0200

Online chat with Swoole

Swoole and thinkp5 develop WebSocket online chat communication system ThinkPHP needs to install the think Swoole composer package when using Swoole, provided that the system has been installed Okay, Swoole PECL expansion To install think swoole, execute the composer command in the project root directory of tp5: 1 composer require topthi ...

Posted by realchamp on Mon, 21 Oct 2019 16:36:50 +0200

Understanding Java Network IO Model by Example

Network IO Model and Classification Internet IO model is a frequently mentioned problem. Different books or blogs may have different opinions, so there is no need to cut corners, the key is to understand. Socket connection Regardless of the model, the socket connections used are the same.The following is a typical connection on an application ...

Posted by cbcampbell on Tue, 15 Oct 2019 11:21:47 +0200

Building a Simple Multi-Person Chat System Based on SpringBoot+WebSocket

Preface _Today, I Let's have a brief look. What is WebSocket Firstly, what is WebSocket? WebSocket is a protocol for full-duplex communication over a single TCP connection. This is a more official statement. In short, in a TCP connection, the two sides of the communication can communicate with each other. For example, when A and B are on the ph ...

Posted by wookie on Thu, 10 Oct 2019 14:20:48 +0200

DNS error java.net.UnknownHostException in kubernetes cluster

problem Recently, the business log frequently reported java.net.UnknownHostException. At first, I thought that kubernetes could not find SVC in the running process. If there is no endpoint in svc, it should be rejected by the newspaper connection, and it can not be resolved to the host name. My first reaction is that SVC does not exist in dns. ...

Posted by Daveyz83 on Thu, 10 Oct 2019 10:39:06 +0200

Vulnerability Environment Construction and Testing of CVE-2018-2893

Build a vulnerability environment (attacked) Install weblogic 10.3.6.0 Close windows Firewall Open the installation package and proceed until the following interface appears Then go on to the next step. Upon completion of installation        Go to C: Oracle Middleware user_projects ...

Posted by sliilvia on Tue, 08 Oct 2019 23:56:09 +0200