Commit Graph

34 Commits

Author SHA1 Message Date
Dietmar Maurer
40ca6e9c11 fix proxy loop assertion 2013-07-23 08:34:56 +02:00
Alexandre Derumier
f60bd577b7 spiceproxy : allow only spice port range
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-07-22 13:04:16 +02:00
Dietmar Maurer
f2c8b26931 try to detect proxy loops 2013-07-22 09:13:41 +02:00
Dietmar Maurer
c3b83ed1f9 call $rpcenv->init_request before calling remote_node_ip
Else get get undefined values.
2013-07-19 11:38:34 +02:00
Dietmar Maurer
8963443427 spiceproxy: forward calls to remote nodes 2013-07-18 12:27:02 +02:00
Dietmar Maurer
cffad9045e spiceproxy: code cleanups 2013-07-18 08:53:07 +02:00
Dietmar Maurer
8a223d4f74 spiceproxy: use tcp instead of unix socket 2013-07-17 11:48:02 +02:00
Dietmar Maurer
8d5310c1b0 spiceproxy: improve loggin code
* use the same log file as pveproxy: /var/log/pveproxy/access.log

 * log early just after establishing the connection.
2013-06-27 06:50:32 +02:00
Dietmar Maurer
33afb29b29 add spiceproxy server 2013-06-26 13:21:14 +02:00
Alexandre Derumier
6e30b52dd4 rest : handle application/x-spice-configuration response format
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-06-25 08:22:50 +02:00
Dietmar Maurer
a49706cb78 avoid gzip http response for jar
Java archives (.jar) are simple zip files - already compressed.
2013-06-11 07:00:05 +02:00
Alexandre Derumier
0ebf2fa8d9 avoid gzip http response for png & gif
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-06-11 06:58:25 +02:00
Dietmar Maurer
23699d1eee fix bug 401: disable connection timeout during API call processing
Only enable timeouts when we really expect data to be send/received.
2013-06-07 09:54:26 +02:00
Dietmar Maurer
139cb2dac1 avoid using HTTP_PROXY environment variable
People run into problems on upgrades, for example:

 export http_proxy=http://172.xxx.xxx.xxx:8888/
 aptitude update && aptitude full-upgrade

This restarts pveproxy, and after that login was no longer possible.

Another way to reproduce the bug is:

 http_proxy=http://1.2.3.4:8888/ pveproxy --debug
2013-05-23 07:24:46 +02:00
Dietmar Maurer
17c8ec6486 try to add resonable warning if client connections vanished
The proxy call is done async, so the original connection can be
closed already. This just adds a reasonable warning message. We
can remove the message later if that turns out to work as expected.
2013-05-22 10:54:21 +02:00
Dietmar Maurer
e3110298e3 allow to upload files with spaces in filename 2013-05-22 06:44:04 +02:00
Dietmar Maurer
1319da8142 avoid warning about uninitialized value 2013-05-21 09:40:54 +02:00
Dietmar Maurer
5c49583304 fix bug #385: correctly handle Accept-Encoding 2013-05-13 09:09:52 +02:00
Dietmar Maurer
15903af61d do not use AnyEvent::Strict in production environment 2013-04-29 08:21:29 +02:00
Dietmar Maurer
88ad410336 pveproxy: implement if-modified-since 2013-04-23 11:53:32 +02:00
Dietmar Maurer
a908636e70 pveproxy: implement host based access control 2013-04-23 10:30:10 +02:00
Dietmar Maurer
f6c357cf35 code cleanups 2013-04-17 08:28:05 +02:00
Dietmar Maurer
2c32df3609 improve syslog for file uploads
Log correct file size and MD5SUM.
2013-04-16 09:37:47 +02:00
Dietmar Maurer
0266798235 stop keep-alive when there are many open connections
We try to avoid to reach the max_conn limit.
2013-04-16 09:09:41 +02:00
Dietmar Maurer
209b203ebf improve security by setting size limits 2013-04-16 08:59:50 +02:00
Dietmar Maurer
e66d68a923 accept len=0 for http requests 2013-04-16 07:02:58 +02:00
Dietmar Maurer
a81182b00b fix multipart parser
Content-Type is optional and not well defined, so do not use it.
2013-04-16 06:29:23 +02:00
Dietmar Maurer
d0547f7fde use correct protocol version for http response 2013-04-15 12:26:20 +02:00
Dietmar Maurer
d06a1c62c3 implement file upload
And remove CGI.pm dependency (because we want nonblocking upload).
2013-04-15 11:20:17 +02:00
Dietmar Maurer
5a68b2b2f0 do not use keep_alive for connections to localhost 2013-04-11 09:06:38 +02:00
Dietmar Maurer
353fef2430 add tls_ctx to proxy requests
and fix a typo
2013-04-11 08:53:35 +02:00
Dietmar Maurer
f91072d56f code cleanups 2013-04-11 08:31:03 +02:00
Dietmar Maurer
c2e9823c0a use syncrounous IO for log writer 2013-04-11 07:47:33 +02:00
Dietmar Maurer
57f93db1b9 move HTTPServer into separate file 2013-04-11 06:48:01 +02:00