Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] Custom credit card processor (more information)



******    message to minivend-users from jojo@buchonline.net     ******

On 25 May, Michael Toulouse wrote:
> ******    message to minivend-users from Michael Toulouse <toulouse@ai.org>     ******
> 
> Still working on that problem with my custom credit card processor (in
> which the server hangs after correctly processing the submission).
> 
> Here's the *specific place* that it's hanging, in Server.pm, in the
> neighborhood of line 1150-1175:
> 
>     undef $::Instance;
> ==> select(undef,undef,undef,0.050) until getppid == 1; <==  HANGS
> HERE!!!
>     if ($Global::PIDcheck) {
>       unlink_pid() and &$Sig_dec;
>     }
> 
> 
> Can anybody help?  I would greatly appreciate it!

What is your setting of maxserver, housekeeping and PIDcheck? Maybe the
custom credit card processor need a lot of times and Minivend is
waiting and waiting etc. and after some times, Minivend check the
running PIDs, whether some PIDs is still alive or not. Maybe you have
to increase PIDcheck or housekeeping?

Hmmm....if you want to find out a reason for any hanging yourself, add a
line like

logGlobal( errmsg('Server.pm:1', " BEFORE EINTR = " . &EINTR . " / errormsg = " . $? . " / PID = " . $$) ); 
     undef $::Instance;
 select(undef,undef,undef,0.050) until getppid == 1;
logGlobal( errmsg('Server.pm:1', " AFTER EINTR = " . &EINTR . " / errormsg = " . $? . " / PID = " . $$) ); 
     if ($Global::PIDcheck) {
       unlink_pid() and &$Sig_dec;
     }

in Server.pm and restart the MiniVend server (backup first please). 
logGlobal(....) write a message like

192.168.1.10 dx9ohyaG:192.168.1.10 - [10/Mai/2000:10:50:35 +0200] - /cgi-bin/bolorg/test  BEFORE EINTR = 4 / errormsg = No such process / PID = 3653

Change

use POSIX qw(setsid);

to

use POSIX qw(setsid EINTR);

to get the value of EINTR.

But try "PIDcheck 0" first, to see what you get!

Good lucks!

Regards,

	Joachim

-- 
Hans-Joachim Leidinger
buch online                 jojo@buchonline.net
Munscheidstr. 14            FAX: +49 209 1671449
45886 Gelsenkirchen         FAX: 0209 1671449

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: