projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make check works, no problems (yet) with threads
[pazpar2-moved-to-github.git]
/
src
/
connection.c
diff --git
a/src/connection.c
b/src/connection.c
index
9ca2142
..
9a29f90
100644
(file)
--- a/
src/connection.c
+++ b/
src/connection.c
@@
-323,9
+323,8
@@
static void connection_handler(IOCHAN iochan, int event)
else if (event & EVENT_TIMEOUT)
{
ZOOM_connection_fire_event_timeout(co->link);
else if (event & EVENT_TIMEOUT)
{
ZOOM_connection_fire_event_timeout(co->link);
- client_lock(cl);
+
non_block_events(co);
non_block_events(co);
- client_unlock(cl);
remove_connection_from_host(co);
yaz_mutex_leave(host->mutex);
remove_connection_from_host(co);
yaz_mutex_leave(host->mutex);
@@
-335,13
+334,11
@@
static void connection_handler(IOCHAN iochan, int event)
{
yaz_mutex_leave(host->mutex);
{
yaz_mutex_leave(host->mutex);
- client_lock(cl);
non_block_events(co);
ZOOM_connection_fire_event_socket(co->link, event);
non_block_events(co);
non_block_events(co);
ZOOM_connection_fire_event_socket(co->link, event);
non_block_events(co);
- client_unlock(cl);
if (co->link)
{
if (co->link)
{