read_socket_data: recv failure

David Collier-Brown davecb at canada.sun.com
Mon Feb 28 18:13:20 GMT 2000


John Wilkes wrote:
> I can't get samba to work reliably. Win98 machines can map a network
> drive via Samba, but writing large files to the Linux box fails. I get
> error messages that all are some variation on this
...
> [2000/02/20 22:38:31, 6] lib/util_sock.c:write_socket(560)
>   write_socket(6,39) wrote 39
> [2000/02/20 22:38:31, 10] lib/util_sock.c:read_socket_data(468)
>   read_socket_data: recv of 4 returned 0. Error = Success
> [2000/02/20 22:38:31, 10] lib/util_sock.c:receive_smb(651)
>   receive_smb: length < 0!
> [2000/02/20 22:38:31, 3] smbd/process.c:timeout_processing(854)
>   end of file from client

	This appears to be the client falling over
	in mid-transfer: samba wrote 39 bytes, tried
	to read four back, and got 0. The receive_smb
	returned EOF, and samba cleaned up.

	This wasn't coming from the "john" share, was it?
	That one had just been disconnected from, earlier
	in the file:

[2000/02/20 22:38:31, 1] smbd/service.c:close_cnum(568)
  winsrv (204.238.32.10) closed connection to service john

--dave
-- 
David Collier-Brown,  | Always do right. This will gratify some people
185 Ellerslie Ave.,   | and astonish the rest.        -- Mark Twain
Willowdale, Ontario   | //www.oreilly.com/catalog/samba/author.html
Work: (905) 415-2849 Home: (416) 223-8968 Email: davecb at canada.sun.com


More information about the samba mailing list