Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
70aae8fe
Commit
70aae8fe
authored
11 years ago
by
Eugine Blikh
Browse files
Options
Downloads
Patches
Plain Diff
Fix for #146 and #150. closing socket and entangled variables
parent
a2e8e631
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/box/socket.result
+4
-1
4 additions, 1 deletion
test/box/socket.result
test/box/socket.test.py
+2
-3
2 additions, 3 deletions
test/box/socket.test.py
with
6 additions
and
4 deletions
test/box/socket.result
+
4
−
1
View file @
70aae8fe
...
...
@@ -936,7 +936,7 @@ iotest()
---
- 12
...
wait_cout = 100 while rep
lie
s ~= 3 and wait_cout > 0 do box.fiber.sleep(0.001) wait_cout = wait_cout - 1 end
wait_cout = 100 while reps ~= 3 and wait_cout > 0 do box.fiber.sleep(0.001) wait_cout = wait_cout - 1 end
---
...
reps
...
...
@@ -955,3 +955,6 @@ wait_cout = 100 while not test_listen_done and wait_cout > 0 do box.fiber.sleep(
Hello world
Hello world
Hello world
ms:close()
---
...
This diff is collapsed.
Click to expand it.
test/box/socket.test.py
+
2
−
3
View file @
70aae8fe
...
...
@@ -40,7 +40,6 @@ admin("s:connect('127.0.0.1', '30303')")
admin
(
"
s:error()
"
)
admin
(
"
s:connect(
'
127.0.0.1
'
,
'
30303
'
, 0.01)
"
)
# connection refused
admin
(
"
s:error()
"
)
...
...
@@ -563,7 +562,7 @@ admin("iotest()")
admin
(
"
iotest()
"
)
admin
(
"
iotest()
"
)
# Due to delays in event loop the value can be not updated
admin
(
"
wait_cout = 100 while rep
lie
s ~= 3 and wait_cout > 0 do box.fiber.sleep(0.001) wait_cout = wait_cout - 1 end
"
)
admin
(
"
wait_cout = 100 while reps ~= 3 and wait_cout > 0 do box.fiber.sleep(0.001) wait_cout = wait_cout - 1 end
"
)
admin
(
"
reps
"
)
# Bug #43: incorrect box:shutdown() arg handling
...
...
@@ -588,7 +587,6 @@ end
box.fiber.wrap(server)
"""
admin
(
"
test_listen_done = false
"
)
admin
(
test
.
replace
(
'
\n
'
,
'
'
))
# Due to delays in event loop the value can be not updated
...
...
@@ -612,3 +610,4 @@ s.connect(('127.0.0.1', 8181))
data
=
s
.
recv
(
1024
)
s
.
close
()
print
data
admin
(
"
ms:close()
"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment