~swhv/swhv/esajpip-current-swhv

« back to all changes in this revision

Viewing changes to esajpip/src/client_manager.cc

  • Committer: bogdan
  • Date: 2016-04-20 15:14:59 UTC
  • Revision ID: svn-v4:b4e469a2-07ce-4b26-9273-4d7d95a670c7:trunk/server/esajpip/esajpip:7027
server: esajpip - close sock_stream on error

Show diffs side-by-side

added added

removed removed

Lines of Context:
214
214
                        << http::Header::CacheControl("no-cache")
215
215
                        << http::Header::ContentLength(base::to_string(err_msg_len))
216
216
                        << http::Protocol::CRLF << flush;
217
 
            if (err_msg_len)
 
217
            if (err_msg_len) {
218
218
                sock_stream->Send((void *) err_msg, err_msg_len);
 
219
                sock_stream->Close();
 
220
            }
219
221
        } else if (send_data) {
220
222
            if (!send_gzip)
221
223
                for (bool last = false; !last;) {