There is actually two different problems:
1.
-------------
exec admin "lua n, status, error_code, error_str = s:send(string.rep('=',
200000), 0.0000001)"
exec admin "lua type(n)"
exec admin "lua type(status)"
exec admin "lua type(error_code)"
exec admin "lua type(error_str)"
exec admin "lua status"
-------------
This test tries to send 200000 char within 0.0000001 sec time limit and check
that 'timedout' error happens on the socket.
On modern Linux such small packets usually send without blocking on loopback
interface.
=> Increase packet size
2.
-------------
exec admin "lua s:connect('::1', '30303')"
# connection refused
exec admin "lua s:error()"
-------------
This test checks IPv6 connection.
If IPv6 is disabled (rmmod ipv6 or net.ipv6.conf.all.disable_ipv6=1) then this
test will fail.
=> Remove this check from socket.test
** Changed in: tarantool
Importance: Undecided => Low
** Changed in: tarantool
Status: New => In Progress
** Changed in: tarantool
Milestone: None => 1.5.1
** Changed in: tarantool
Assignee: (unassigned) => Roman Tsisyk (rtsisyk)
--
You received this bug notification because you are a member of Tarantool
Development Team, which is subscribed to tarantool.
https://bugs.launchpad.net/bugs/1192951
Title:
box/socket.test is broken (again!)
Status in Tarantool - an efficient in-memory data store:
In Progress
Bug description:
git describe
1.5.0-225-gb461d9e
box/socket.test [ fail ]
Test failed! Result content mismatch:
--- box/socket.result Thu Jun 20 16:03:34 2013
+++ ../test/box/socket.reject Thu Jun 20 16:14:07 2013
@@ -142,32 +142,32 @@
...
lua type(status)
---
- - string
+ - nil
...
lua type(error_code)
---
- - number
+ - nil
...
lua type(error_str)
---
- - string
+ - nil
...
lua status
---
- - timeout
+ - nil
...
lua error_code
---
- - 110
+ - nil
...
lua error_str
---
- - Connection timed out
-...
-lua s:error()
----
- - 110
- - Connection timed out
+ - nil
+...
+lua s:error()
+---
+ - 0
+ - Success
...
connected
lua s:send('ping')
To manage notifications about this bug go to:
https://bugs.launchpad.net/tarantool/+bug/1192951/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~tarantool-developers
Post to : [email protected]
Unsubscribe : https://launchpad.net/~tarantool-developers
More help : https://help.launchpad.net/ListHelp