[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
The dreaded AIX 4.2.1 threads
Good morning!
I have compiled a multi-threaded slapd on AIX 4.2.1 and a mono-threaded one
with exactly the same options. When performing ldapsearch with a scope set
to "one" on the top entry, I get different debug traces from the 2 servers :
---- mono-threaded
...
conn=0 op=1 RESULT err=0 tag=101 nentries=23
listening for connections on 3, activity on: 5r
before select active_threads 0
select activity on 1 descriptors
activity on: 5r
read activity on 5
ber_get_next
ber_get_next: tag 0x30 len 5 contents:
ber_dump: buf 0x2021e718, ptr 0x2021e718, end 0x2021e71d
current len 5, contents:
02 01 03 B 00
do_unbind
conn=0 op=2 UNBIND
conn=0 op=2 fd=5 closed errno=0
listening for connections on 3, activity on:
before select active_threads 0
<output finished>
---- multi-threaded
...
conn=0 op=1 RESULT err=0 tag=101 nentries=23
select activity on 1 descriptors
activity on: 5r
read activity on 5
ber_get_next
ber_get_next: tag 0x30 len 5 contents:
ber_dump: buf 0x2021ee28, ptr 0x2021ee28, end 0x2021ee2d
current len 5, contents:
02 01 03 B 00
listening for connections on 3, activity on: 5r
before select active_threads 1
select activity on 1 descriptors
activity on: 5r
read activity on 5
ber_get_next
ber_get_next on fd 5 failed errno 0 (Error 0)
*** got 0 of 0 so far
conn=0 op=-1 fd=5 closed errno=0
listening for connections on 3, activity on:
before select active_threads 1
do_unbind
conn=0 op=2 UNBIND
<output finished>
As you can see, the multi-threaded version ends the query on an error:
ber_get_next on fd 5 failed errno 0 (Error 0)
while the mono-threaded one doesn't. Is this a normal behaviour?
Ciya,
Frederic Poels.