monotone-commits-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-commits-diffs] Revision 17083e2cf2f8cf02b8ebf8a41f32b66e1e9030


From: monotone
Subject: [Monotone-commits-diffs] Revision 17083e2cf2f8cf02b8ebf8a41f32b66e1e90303d
Date: Wed, 21 Jan 2009 07:51:58 +0100

-----------------------------------------------------------------
Revision: 17083e2cf2f8cf02b8ebf8a41f32b66e1e90303d
Ancestor: d80817142ef2b9410c997869a8fd506cb3a7a30d
Author: address@hidden
Date: 2009-01-21T06:48:52
Branch: net.venge.monotone.nuskool

Modified files:
        cmd_netsync.cc cmd_scgi.cc constants.hh http_client.cc
        json_msgs.cc options_list.hh

ChangeLog: 

add support for both scgi and http connections

the command 'mtn --db server.db gserve' will start the server in scgi mode with
the expectation that it is behind an scgi capable web-server. the command 'mtn
--db client.db gsync http://localhost/monotone "*"' will start the client and
connect to the webserver in front of the monotone scgi server.

the command 'mtn --db server.db gserve --http' will start the server in http
mode without the requirement for an intermediate scgi web-server. the command
'mtn --db client.db gsync http://localhost:8008 "*"' will start the client and
connect directly to the associated monotone server.

* cmd_netsync.cc (gsync): add note about also supporting stdio
* cmd_scgi.cc: add connection_type enum; 
  (scgi_error): rename to...
  (gserve_error): ... this
  (parse_scgi): rename to ...
  (parse_scgi_headers): ... this
  (parse_http_headers): new function for parsing raw http headers
  (process_scgi_transaction): rename to ...
  (process_transaction): ... this; used for both http and scgi
  (CMD(scgi)): rename to ...
  (CMD(gserve)): ... this; remove unused scgi_bind option; add bind_http option
* constants.hh: set default_http_port to 8008 so non-root users can run server
* http_client.cc (transact_json, parse_http_status_line, parse_http_header_line,
  parse_http_response): upgrade to http 1.1 in an attempt to fix connection
  closing problems
* json_msgs.cc: add encode_hexenc and decode_hexenc calls in various places to
  account for binary revision and file ids
* options_list.hh: add bind_http option; remove unused scgi_bind option


Attachment: txtU2TLj2ykzm.txt
Description: Diff [d80817142ef2b9410c997869a8fd506cb3a7a30d] -> [17083e2cf2f8cf02b8ebf8a41f32b66e1e90303d]


reply via email to

[Prev in Thread] Current Thread [Next in Thread]