At 01:27 PM 7/31/02 +0200, Andreas Bourges wrote:
> > I'll see if I can devise some little test program that will show this
> > problem. Maybe a fix to perl 5.8.0 will be easy...
>...to be honest - no, I'm still loosing packets :-( And I don't see any
>possibility to make my code faster - there isn't really much in it:
>
> while (my $src = $sock->recv(my $newmsg, $nfcd_config{'udp_maxlen'})) {
> my $remotehost = (sockaddr_in($src))[1], AF_INET;
> push @packet_array, $remotehost, $newmsg;
> }
>
>that's the loop I'm accepting packet's in - not much to say about it. So
>maybe
>the threaded approach for this problem is just not the right one...
>if you have any idea - please let me know!
Maybe if we reduce the number of array elements?
push @packet_array, "$remotehost\0$newmsg";
and do a split( "\0", ... ) on the other end?
Liz