Comments (3)
Okay, I found some more interesting stuff. If you closely look at the following two requests, it looks that the result that is coming from Relayd is not really a HTTP Answer. More looks more like its actually just the payload in plaintext including the headers.
What it should look like (query without relayd)
curl -v localhost:5003/kadsen/status ; echo
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 5003 (#0)
> GET /kadsen/status HTTP/1.1
> Host: localhost:5003
> User-Agent: curl/7.47.0
> Accept: */*
>
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Content-Type: text/plain; charset=utf-8
< Content-Length: 268
< Server: Werkzeug/0.11.10 Python/2.7.11
< Date: Fri, 19 Aug 2016 07:29:35 GMT
<
images cached: 56 (816 bytes) - already crawled: 75 (776 bytes)
Reddit - aww with factor 1.0: 22 Images |###*
Reddit - cats with factor 1.0: 18 Images |###
Reddit - aww_gifs with factor 1.0: 16 Images |###
* Closing connection 0
What relayd prints out:
$ curl -v localhost/kadsen/status ; echo
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 80 (#0)
> GET /kadsen/status HTTP/1.1
> Host: localhost
> User-Agent: curl/7.47.0
> Accept: */*
>
Server: Werkzeug/0.11.10 Python/2.7.11
Date: Fri, 19 Aug 2016 07:29:11 GMT
images cached: 56 (816 bytes) - already crawled: 75 (776 bytes)
Reddit - aww with factor 1.0: 22 Images |###*
Reddit - cats with factor 1.0: 18
Note the missing HTTP 200 Return Code, note the missing <
when the result is being recieved.
from relayd.
I might have the same problem with monit, see here: https://marc.info/?l=openbsd-misc&m=152388670603181&w=2
Did you find any solution for this? I don't get this when relaying to httpd.
from relayd.
@hrkfdn Did not find out anything. Just dropped the relayd solution and replaced it with nginx.
from relayd.
Related Issues (18)
- relay http persistent connection HOT 1
- SNI support HOT 2
- Better syntax errors
- relayd does not function with OpenSSL 1.1.x
- cannot match multiple URLs HOT 8
- Redirect host with specific url HOT 1
- relayd MITM/TLS Inspection does not currently appear to support SNI
- Different rules in one relay seem to be interfering when the [with tls] option is used.
- mixing HTTP and HTTPS forwards in one/two relays HOT 1
- Repo out of date?
- "relayctl host disable" only disables host for one port
- Too many CLOSE_WAIT connections HOT 2
- relayd can't load certificates HOT 2
- relayctl reload causes relayd to "hang" HOT 1
- Redirect in relayd? HOT 3
- Add support for ECDSA server certificates HOT 1
- IPv6 and SSL certificates HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from relayd.