projects
/
yazpp-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update zlint for new z-assoc/pdu-assoc behavior
[yazpp-moved-to-github.git]
/
zlint
/
zlint.cpp
diff --git
a/zlint/zlint.cpp
b/zlint/zlint.cpp
index
0c596e3
..
a0ad235
100644
(file)
--- a/
zlint/zlint.cpp
+++ b/
zlint/zlint.cpp
@@
-79,13
+79,12
@@
void Zlint::timeoutNotify()
{
if (m_cur_test->m_t->recv_fail(this, 2) != TEST_FINISHED)
{
{
if (m_cur_test->m_t->recv_fail(this, 2) != TEST_FINISHED)
{
- close();
client(m_host);
timeout(30);
return;
}
client(m_host);
timeout(30);
return;
}
+ close_goto_next();
}
}
- close_goto_next();
}
void Zlint::failNotify()
}
void Zlint::failNotify()
@@
-94,13
+93,12
@@
void Zlint::failNotify()
{
if (m_cur_test->m_t->recv_fail(this, 1) != TEST_FINISHED)
{
{
if (m_cur_test->m_t->recv_fail(this, 1) != TEST_FINISHED)
{
- close();
client(m_host);
timeout(30);
return;
}
client(m_host);
timeout(30);
return;
}
+ close_goto_next();
}
}
- close_goto_next();
}
void Zlint::connectNotify()
}
void Zlint::connectNotify()
@@
-109,8
+107,8
@@
void Zlint::connectNotify()
{
if (m_cur_test->m_t->init(this) != TEST_FINISHED)
return;
{
if (m_cur_test->m_t->init(this) != TEST_FINISHED)
return;
+ close_goto_next();
}
}
- close_goto_next();
}
void Zlint::recv_GDU(Z_GDU *gdu, int len)
}
void Zlint::recv_GDU(Z_GDU *gdu, int len)
@@
-122,23
+120,25
@@
void Zlint::recv_GDU(Z_GDU *gdu, int len)
return;
if (r == TEST_REOPEN)
{
return;
if (r == TEST_REOPEN)
{
- close();
client(m_host);
timeout(30);
return;
}
client(m_host);
timeout(30);
return;
}
+ close_goto_next();
}
}
- close_goto_next();
}
void Zlint::close_goto_next()
{
}
void Zlint::close_goto_next()
{
- close();
if (m_cur_test)
m_cur_test = m_cur_test->m_next;
if (m_cur_test)
if (m_cur_test)
m_cur_test = m_cur_test->m_next;
if (m_cur_test)
+ {
client(m_host);
client(m_host);
- timeout(30);
+ timeout(30);
+ }
+ else
+ close();
}
IPDU_Observer *Zlint::sessionNotify(
}
IPDU_Observer *Zlint::sessionNotify(