Akopia Akopia Services

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

Re: [mv] Setting MV session ID from outside of Minivend.]]



******    message to minivend-users from Hans-Joachim Leidinger <jojo@buchonline.net>     ******

> If you are running BSD, you may see hangs, but that is not Minivend's
> fault IMHO. It is their kernel interrupting socket reads where no other
> OS does. This is true for any Perl program that uses sockets.  The only
> reason Minivend gets hit is that it is a long-running daemon process.

Mike,

I've ask my little brother for any comments about your messages and he
has said:

"The perl functions should be return "errno", if something is going
wrong. If this is "EINTR", it has to restart automatic. A simple example
in C is

---snip---
do {
  ret = read(...);
} while (ret == -1 && errno == EINTR);
---snip---

"man select" tell me
---snip---
     [EINTR]       A signal was delivered before the time limit expired
and
                   before any of the selected events occurred.
---snip---
and "man 2 read":
---snip---
     [EINTR]       A read from a slow device was interrupted before any
data
                   arrived by the delivery of a signal.
---snip---

If this is only a function of BSD, this must not be a problem or a bug
of this kind of OS. It is documented and it has a reason, because all
things in BSD has in most common case a reason. It seems to me, it is a
bug in minivend."

I hope, i've translated the message of my brother so good as i can.
Hmmm...i'm in a muddle. Looking into vlink.c tell me, there _is_

    do {
      s = connect(sock, (struct sockaddr*) &sa, size);
      e = errno;
    } while (s == -1 && e == EINTR);

so far so good. vlink.c _has_ this, but has bin/mininvend this too?

I've no clue to do anything to help you or to give you more
informations.

Regards,

	Joachim


-- 
                  Weird enough for government work.

http://www.Leidinger.net                  Alexander+Home @ Leidinger.net
  GPG fingerprint = 7423 F3E6 3A7E B334 A9CC  B10A 1F5F 130A A638 6E7E


-
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: