Re: use sendfile problems with Windows 95

2003-03-28 Thread Pierre Belanger
Richard Sharpe wrote:
On Thu, 27 Mar 2003, Pierre Belanger wrote:

Can you get us a sniff?

I sent a captured file directly to Richard.

On this Friday, I wanted to share the following...

While doing the capture for Richard, I was "able" to try to open
different files a few times... here's what Windows 95 complained
about, enjoy!
  Word cannot open the document. Try one or more of the following:
  - On the file menu, click Open to open the document
  - Make sure the document has a .DOC extension.
(\\ALKONOST\...\CONFIG-SAVE-PROCDURE.DOC)
While trying to open another file...

  - Word failed reading from this file (CV-belanger-EN).
Please restore the network connection or replace the floppy
disk and retry. (I clicked "OK" and then ...)
  - Word has lost data due to a bad network connection or missing
floppy. Documents relying on this data are going to be saved
and then closed. (I clicked "OK" and then ...)
  - Word cannot complete the save due to a file permission error:
C:\RESCUED DOCUMENT.TXT
Notes: 1) 4 out of 5 times Windows 95 just hanged when trying to
  open the 1st file... this time it did not hang?!?!?!
   2) After doing the above tests, I mapped another drive from
  another Samba server not compiled with "sendfile" support.
  I was able to open the files properly...
Cheers,
Pierre B.


Re: use sendfile problems with Windows 95

2003-03-27 Thread Richard Sharpe
On Thu, 27 Mar 2003, Pierre Belanger wrote:

> Hi,
> 
> I turned on "use sendfile", not too long after (on the next
> "logon") someone called me. His Windows 95 was having trouble
> opening files on the server. He can "explore" the shared volume
> but when trying to open a file, his computer hangs and needs
> to reboot. I've been using "sendfile" myself with Samba under
> Solaris 8 with NT & 2000 & XP since a long time with no trouble
> at all.
> 
> I tested with another Windows 95 box -- same problem. Even
> after ~ 5 min. the box is still hanged.
> 
> I'm wondering if Windows 98/ME are also affected by this?
> I don't have access to Windows ME "boxes" but I might find
> a Windows 98 box... I'll post when I am able to test.
> 
> I generated a level 10 log file, it's 155KB (gzip -9). Someone
> wants to look at it? (I did not want to post this hughe file
> here).

Can you get us a sniff?

Regards
-
Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, 
sharpe[at]ethereal.com, http://www.richardsharpe.com



Re: use sendfile problems with Windows 95

2003-03-27 Thread jra
On Thu, Mar 27, 2003 at 03:01:55PM -0500, Pierre Belanger wrote:
> Hi,
> 
> I turned on "use sendfile", not too long after (on the next
> "logon") someone called me. His Windows 95 was having trouble
> opening files on the server. He can "explore" the shared volume
> but when trying to open a file, his computer hangs and needs
> to reboot. I've been using "sendfile" myself with Samba under
> Solaris 8 with NT & 2000 & XP since a long time with no trouble
> at all.
> 
> I tested with another Windows 95 box -- same problem. Even
> after ~ 5 min. the box is still hanged.
> 
> I'm wondering if Windows 98/ME are also affected by this?
> I don't have access to Windows ME "boxes" but I might find
> a Windows 98 box... I'll post when I am able to test.
> 
> I generated a level 10 log file, it's 155KB (gzip -9). Someone
> wants to look at it? (I did not want to post this hughe file
> here).

A log file won't help I don't think. It looks like sendfile
is simply overwhelming the Win95 box's ability to process
incoming TCP. Windows 95 is broken in many subtle and not-so-subtle
ways w.r.t. SMB networking I'm afraid. Turning off sendfile
might be your only option.

Jeremy.


use sendfile problems with Windows 95

2003-03-27 Thread Pierre Belanger
Hi,

I turned on "use sendfile", not too long after (on the next
"logon") someone called me. His Windows 95 was having trouble
opening files on the server. He can "explore" the shared volume
but when trying to open a file, his computer hangs and needs
to reboot. I've been using "sendfile" myself with Samba under
Solaris 8 with NT & 2000 & XP since a long time with no trouble
at all.
I tested with another Windows 95 box -- same problem. Even
after ~ 5 min. the box is still hanged.
I'm wondering if Windows 98/ME are also affected by this?
I don't have access to Windows ME "boxes" but I might find
a Windows 98 box... I'll post when I am able to test.
I generated a level 10 log file, it's 155KB (gzip -9). Someone
wants to look at it? (I did not want to post this hughe file
here).
Here's the first place where the communication breaks:

[2003/03/27 14:53:01, 6] lib/util_sock.c:write_socket(521)
  write_socket(5,1588) wrote 1588
[2003/03/27 14:53:47, 0] lib/util_sock.c:read_data(436)
  read_data: read failure for 4. Error = Connection reset by peer
[2003/03/27 14:53:47, 10] lib/util_sock.c:receive_smb(609)
  receive_smb: length < 0 !
[2003/03/27 14:53:47, 3] smbd/process.c:timeout_processing(1105)
  receive_smb error (Connection reset by peer) exiting
I'll check on Microsoft's web site for any "patches"!

Regards,
Pierre B.