And our sages, of blessed memory, said in Taanit (12a): Until when may one eat and drink? Until the morning star rises. And this applies both to an individual fast and to a communal fast, with the exception of Tisha B'Av. And even if one ate the evening meal—he may eat more whenever he wishes. However, if he slept a fixed sleep, it is considered an interruption, and he is forbidden from eating. But if he slept a temporary sleep, that is to say, a nap for a short time—he may return and eat. And in the middle of a meal, even if he slept a fixed sleep—he may return and eat, though this is not common. And similarly regarding drinking—some say that it is forbidden when one slept a fixed sleep. And some say that drinking is always permitted, for a person does not divert his mind from drinking. But for eating, a condition is required: that he stipulates that he desires to eat more. And for drinking, he does not require a condition. And such is the custom, because we are accustomed to drink after sleep. And there is one who says that for a fast over a dream—it is forbidden for him to taste anything immediately upon awakening (Magen Avraham). For his remedy is that he should begin to fast immediately. And see what I wrote in siman 288.
ואמרו חז"ל בתענית (יב א): עד מתי אוכל ושותה? עד שיעלה עמוד השחר. וזהו בין בתענית יחיד, בין בתענית ציבור שלבד תשעה באב. ואפילו אכל סעודת הלילה – יכול לאכול עוד כשירצה. אך אם ישן שינת קבע הוי כהפסקה, ואסור מלאכול. אבל כשישן שינת עראי, דהיינו נמנום לפי שעה קלה – חוזר ואוכל. ובתוך הסעודה אפילו ישן שינת קבע – חוזר ואוכל, אלא דזה לא שכיח. וכן לשתות – יש אומרים שאסור כשישן שינת קבע. ויש אומרים דשתייה תמיד מותר, דמשתייה אין האדם מסיח דעת. אבל לאכילה צריך תנאי: שיתנה שרצונו עוד לאכול. ולשתייה אינו צריך תנאי. וכן המנהג, משום דאנחנו רגילים לשתות אחר השינה. ויש מי שאומר דתענית חלום – אסור לו לטעום כלום מיד כשייקץ (מגן אברהם). דתקנתו היא שמיד יתחיל להתענות. ועיין מה שכתבתי בסימן רפח.