loentar / axis2c-unofficial

Unofficial backports and unofficial support for Apache Axis2/C
Apache License 2.0
15 stars 10 forks source link

axutil_dir_handler_list_service_or_module_dirs using chdir is not thread-safe #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In file axis2c-unofficial\util\src\dir_handler.c function 
axutil_dir_handler_list_service_or_module_dirs
is using "chdir" function, so axutil_dir_handler_list_service_or_module_dirs is 
not thread-safe 
and cannot be use in multithread applications.

Original issue reported on code.google.com by av57...@gmail.com on 7 Feb 2014 at 7:20

GoogleCodeExporter commented 9 years ago
This function is used on startup only and never seems to be called when server 
is started.

What issue you faced exactly?

Original comment by loentar on 17 Feb 2014 at 8:31

GoogleCodeExporter commented 9 years ago
Several clients (in different threads) in one program to proccess multiple 
request to other services.
In my case I have web-service and several clients.

Original comment by av57...@gmail.com on 18 Feb 2014 at 10:11

GoogleCodeExporter commented 9 years ago
You're right, on client side it could cause to Axis2/C can't find some module.

Chdir can't be excluded in case of using archive-based deployment -- need to 
rewrite too much code.

When you don't use archive-based deployment this fix should solve the problem.

Original comment by loentar on 18 Feb 2014 at 12:56

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 7ea8252f8f1d.

Original comment by loentar on 18 Feb 2014 at 12:57