Im having an entirely different problem. Sleep works just fine, but Im running a media server, and windows goes to sleep while the media server is streaming. How can I prevent this from happening? Im using this server: https://code.google.com/p/ps3mediaserver/
multimedia settings \ when sharing media is set to "prevent idling to sleep"
Hmm I actually heard of a little piece of software that tells the computer your mouse is always moving (without actually moving your mouse) so that it won't go to sleep. I'll try to find where it was real quick...
Also, couldn't you just disable your computer from going to sleep at all? Right-click on your desktop, go to Personalize, (on windows 7 it might just have a Screen Saver option when you right click instead; I can't remember) and there should be an option to set it to never sleep. If that doesn't work let me know and I think there's an option in Power Settings...
Or did you just want it to not sleep when you're streaming? That would be a bit more tricky...