send: Resource temporarily unavailable

alessandra doria (doria@na.infn.it)
Mon, 26 Oct 1998 19:40:44 +0100


Hi,
we are using ROOT v2.00 in a client-server application for the online &
offline histogram production and presentation of the KLOE experiment.

The programs work well on HP-UX, but we need to run also on AIX v4.2.
On AIX v4.2 everything seems to work fine, except for the following:

The Server and the Client exchange a string containing the names of all
produced histogram; this string is arbitrarily long (~250KB now) and it
is sent using
s0->Send(string,kMESS_STRING)
where s0 is a TSocket.

We get the following error:
%% SysError in <UnixSend>: send (Resource temporarily unavailable)
%% Error in <TUnixSystem::SendRaw>: cannot send buffer

The error does not appear if the string length is ~50KB (TCP/IP buffer
size).

Looking at the UnixSend routine in the module UNIX_UnixSystem.cxx, we
observed that the system send is repeatly called without a previous call
to select.
Could this be the problem?

Thanks in advance
Alessandra Doria & the KLOE DAQ group