It pretty much depends on the species and size of the octopus as well as reproductive condition. Four days is not too long for almost any species. Assuming you have something like an Abdopus, I wouldn't worry for a week or so. When brooding eggs, females won't eat for almost a month. Of course they are senescing and won't recover.