On VMS, syswrite() returns undef if one tries to write more than 65535 bytes
on a socket.

This can cause problems for other modules, so how about forcing the call to
write a maximum of 65535 bytes? [The caller should always be prepared to
handle a shorter write, so this should not break any code.]

It seems to me that undef should be reserved for more "serious" errors. 

Anyone agree/disagree/other solutions?

[This problem showed up on VMS 7.2-1 with UCX 5.0A. I have not tried any
other combinations.]

-- 
Sebastian Bazley <[EMAIL PROTECTED]>
The opinions expressed herein are my own, and are not necessarily endorsed
by my employer ...

___________________________________________________________________________
This email is confidential and intended solely for the use of the 
individual to whom it is addressed. Any views or opinions presented are 
solely those of the author and do not necessarily represent those of 
Sema Group. 
If you are not the intended recipient, be advised that you have received this
email in error and that any use, dissemination, forwarding, printing, or 
copying of this email is strictly prohibited.

If you have received this email in error please notify the Sema Group
Helpdesk by telephone on +44 (0) 121 627 5600.
___________________________________________________________________________

Reply via email to