def METHOD_NAME (sock):
	sent = 0
	ret = 0
	while sent < WRITEABLE_INDICATION:
		print_info(">>> before epoll infinity (send-ret=%d, sent=%d)" % (ret, sent))
		events = epfd.poll()
		if sock and sock.fileno() in dict(events).keys() and dict(events)[sock.fileno()] & select.EPOLLOUT:
			print_info("<<< after epoll infinity, sock is writeable (sent=%d)" % sent)
			ret = sock.send(PAYLOAD)
			sent += ret
		else:
			print events
			raise Exception("no writeable socket after epoll infinity")
	return sent