[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
WSDL2RPG v1.15.x - Open File Descriptor Problem
Hello!
Users of WSDL2RPG v1.15.x are asked to fix their generated stub modules
as well as the WS_OPER template member due to an "open file descriptor"
problem. The problem is that the WS_OPER module sends a message to the
debug log after the debug log has been closed. That way the debug log
is opened again and kept open which may cause a EMFILE ("Too many open
files for this process") error for long running jobs.
In Order to correct that error, please move http_DebugLog_close() to
the end of the web service procedure as shown below:
Before:
-------
if (not MultiRef_isNull());
MultiRef_delete();
endif;
(3) if (http_DebugLog_isOpen());
http_DebugLog_close();
endif;
(1) // Set error information of last service call
%(var:portName+_Port_setErrors;75;'...')(
g_errors);
(2) http_DebugLog_appendText(
'** ' + %char(%timestamp()) + ': Leaving ' + f_this() + '()');
return %(var:rtnValue);
/end-free
After:
------
if (not MultiRef_isNull());
MultiRef_delete();
endif;
(1) // Set error information of last service call
%(var:portName+_Port_setErrors;75;'...')(
g_errors);
(2) http_DebugLog_appendText(
'** ' + %char(%timestamp()) + ': Leaving ' + f_this() + '()');
(3) if (http_DebugLog_isOpen());
http_DebugLog_close();
endif;
return %(var:rtnValue);
/end-free
The current zip file of WSDL2RPG has been updated but just updating
WSDL2RPG does not fix the generated stub modules. That is what you need
to do by hand.
Sorry for all inconvenience caused by this issue.
Regards,
Thomas.
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------