[vtk-developers] Bad receive in vtkSocketCommunicator on Win32
Berk Geveci
berk.geveci at gmail.com
Wed Apr 13 15:44:32 EDT 2005
Maybe there should be a max number of tries to avoid infinite loops?
On 4/13/05, Moreland, Kenneth <kmorel at sandia.gov> wrote:
> I've noticed a problem with vtkSocketCommunicator on windows. When
> receiving a large message that should otherwise succeed (tags and
> lengths match up, buffer properly allocated), the recv function still
> sometimes fails. Checking the error returned from WSAGetLastError()
> reveals the error WSAENOBUFS (apparently some sort of resource
> allocation problem).
>
> I discovered that when I get this error, if I simply retry the recv, it
> will eventually work (at least in my case). Should I patch
> vtkSocketCommunicator.cxx to always do this on windows?
>
> -Ken
>
> **** Kenneth Moreland
> *** Sandia National Laboratories
> ***********
> *** *** *** email: kmorel at sandia.gov
> ** *** ** phone: (505) 844-8919
> *** fax: (505) 845-0833
>
> _______________________________________________
> vtk-developers mailing list
> vtk-developers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
More information about the vtk-developers
mailing list