In linux, normally, it is impossible to "bind()" to the same TCP port twice. If you try to bind to the same port from second proces unix processes you'll see:
socket.error: [Errno 98] Address already in use
| package com.winse.activiti.util; | |
| import java.awt.BasicStroke; | |
| import java.awt.Color; | |
| import java.awt.Graphics2D; | |
| import java.awt.Paint; | |
| import java.awt.Stroke; | |
| import java.awt.geom.RoundRectangle2D; | |
| import java.awt.image.BufferedImage; | |
| import java.io.ByteArrayInputStream; |
| import sys | |
| def calculate(params, tm): | |
| ex_stack = [] | |
| tmp = [] | |
| mutil = [] | |
| for p in params: | |
| if (not p): | |
| continue |
| { | |
| "url": "https://t.me/smartdeer_test_bot/mine", | |
| "name": "SmartDeer Test", | |
| "iconUrl": "https://global-image.smartdeer.work/p/images/0x9db20f8d5ecf4d2db0ddb8789d1c45f4.svg" | |
| } |