changed the behavior of server to avoid transcode a EOF