Mac OS X 10.1: Computer May Go to Sleep While Sharing

Under certain circumstances, a Mac OS X computer can go to sleep while File Sharing appears to be active.
Symptom

The File Sharing computer unexpectedly goes to sleep while it appears to be actively File Sharing. You receive this message:

"The file server's connection has unexpectedly closed down [time and date]."


Solution

To prevent this behavior, follow these steps:

This is the only certain way to prevent the computer from going to sleep while it is sharing files. Being connected to a sharing computer (having it mounted) is not sufficient in itself to prevent the computer from going to sleep or to reset the sleep clock. You might also encounter this behavior if the software you are using locally caches the file being read from the sharing computer. Though it might appear that you are actively reading the file from the sharing computer, there may be no activity between the two at the moment that the defined sleep period expires.
Published Date: Feb 17, 2012