安装php-tuxedo_0_4_1后,可以访问TUXEDO服务,但是时间长了就在tux_tpcall出现TPESYSTEM错误,等待一段时间或apachectl restart以后又正常了,不知道是什么原因,有说法是WSNADDR的问题,但是我每次都利用API确认过的,服务是TUXEDO的SAMPLE服务TOUPPER,我的主要访问流程:
- tux_tuxputenv("WSNADDR",$srv)
- $in_buff=tux_tpalloc(TUX_STRING,"",strlen($txt)+1);
- tux_put_buf($in_buff,$my_text);
- tux_tpcall("TOUPPER",$in_buff,$out_buff,0);
- tux_tpfree($in_buff);
- tux_tpclose();
以上只是部分主要代码,大部分时间能够成功,只是不稳定,出现TPESYSTEM后重启APACHE就立马恢复,否则也只有等一段时间,实在郁闷。
出错后的ULOG:
- 140855.d390!?proc.5672.1.0: LIBWSC_CAT:1055: ERROR: Unable to establish WSL connection
- 140855.d390!?proc.5672.1.0: LIBWSC_CAT:1027: ERROR: Unable to connect to WSH
- 140855.d390!?proc.5672.1.0: LIBWSC_CAT:1020: ERROR: Unable to obtain authentication level
- 140855.d390!?proc.5672.1.-2: GP_CAT:1569: ERROR: Unable to lock network mutex -1 at 3556
- 140855.d390!?proc.5672.1.-2: LIBWSC_CAT:1011: ERROR: tpcall() message send failure
- 140855.d390!?proc.5672.1.-2: GP_CAT:1569: ERROR: Unable to lock network mutex -1 at 3556
- 140855.d390!?proc.5672.1.-2: LIBWSC_CAT:1025: ERROR: Unable to send tpterm() request
- 140916.d390!?proc.5675.1.0: LIBWSC_CAT:1055: ERROR: Unable to establish WSL connection
- 140916.d390!?proc.5675.1.0: LIBWSC_CAT:1027: ERROR: Unable to connect to WSH
- 140916.d390!?proc.5675.1.0: LIBWSC_CAT:1020: ERROR: Unable to obtain authentication level
- 140916.d390!?proc.5675.1.-2: GP_CAT:1569: ERROR: Unable to lock network mutex -1 at 3556
- 140916.d390!?proc.5675.1.-2: LIBWSC_CAT:1011: ERROR: tpcall() message send failure
- 140916.d390!?proc.5675.1.-2: GP_CAT:1569: ERROR: Unable to lock network mutex -1 at 3556
- 140916.d390!?proc.5675.1.-2: LIBWSC_CAT:1025: ERROR: Unable to send tpterm() request
看起来象服务端的问题,事实上其他客户端可以连接,如果是WSNADDR的问题,tux_tuxgetenv("WSNADDR")的返回也是正确。
OS:HPUX 11.00 Tuxedo Version 8.1,APACHE 1.3.33+PHP 5.1.2+PHP-Tuxedo Version 0.4.0