Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
new-socketemulator
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李远洪
new-socketemulator
Commits
89d27354
Commit
89d27354
authored
Aug 05, 2020
by
liyuanhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复了linux下无法关闭连接的功能
parent
9be24297
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
lib/socket/ClientSocket.py
lib/socket/ClientSocket.py
+1
-0
No files found.
lib/socket/ClientSocket.py
View file @
89d27354
...
@@ -60,6 +60,7 @@ class ClientSocket(SocketBase):
...
@@ -60,6 +60,7 @@ class ClientSocket(SocketBase):
#####################################################
#####################################################
def
close
(
self
):
def
close
(
self
):
# self.client.send("_end".encode()) //发送一个socket断开的命令
# self.client.send("_end".encode()) //发送一个socket断开的命令
self
.
client
.
shutdown
(
socket
.
SHUT_RDWR
)
self
.
client
.
close
()
self
.
client
.
close
()
self
.
status
=
0
self
.
status
=
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment