Giter Club home page Giter Club logo

bitz-server's Introduction

Hi 👋

I’m a techie 👨‍💻 creating simple solutions to complex problems.

I’m passionate about Open Source and have contributed to many open source projects over the years. I’m the author of gRPCxx — An ultra fast gRPC server implementation in C++, Sentium — Global scale fine-grained access control system that’s simple and flexible and nisos — A real-time operating system with a corporative kernel, to name a few of my open source projects.

Professionally, I’m a CTO with over 10 years’ of experience in leading and scaling cross-functional teams in multiple startups to create innovative products.

I blog about my experiences here and regularly post content on LinkedIn.

📫 How to reach me

Get in touch with me on LinkedIn and follow me to get updates.

bitz-server's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

bitz-server's Issues

Python3 issue

Hello,

on Debian build with only Python3 I get:

py.cpp: In member function 'void bitz::Py::init_python()':
py.cpp:102:8: error: 'Py_InitModule' was not declared in this scope

Please can you check it?

Thanks

CU
Jörg

ICAP responses not setting "Encapsulated" header correctly

E.g. res-hdr=0 is missing from the response below.

ICAP/1.0 200 OK
Connection: close
Date: Thu Dec 27 12:49:02 2018 GMT
ISTag: BITZ-1545914942-75880
Server: bitz-server 2.0.2
Encapsulated: res-body=159

HTTP/1.1 200 OK
Date: Mon, 10 Jan 2000 09:52:22 GMT
Server: Apache/1.3.6 (Unix)
ETag: "63840-1ab7-378d415b"
Content-Type: text/html
Content-Length: 51

33
This is data that was returned by an origin server.
0

Fix cppcheck errors

From Debian RFS #804413:

cppcheck -j1 --quiet -f . | grep -vF 'cppcheck: error: could not find or open any of the paths given.'
[src/bitz/manager.cpp:212]: (error) Exception thrown in throw() function.

Compiling against current versions of spdlog

Hi,
I've faced the following errors while compiling bitz-server against spdlog versions 1.2.1-1.3.1.

main.cpp:39:24: error: ‘stdout_color_st’ is not a member of ‘spdlog’
  auto logger = spdlog::stdout_color_st( "bitz-server" );
main.cpp:78:20: error: ‘rotating_logger_mt’ is not a member of ‘spdlog’
   logger = spdlog::rotating_logger_mt( "bitz-server", config.log_file, ( 1048576 * 1024 ), 7 );

It appears that spdlog/sinks includes are missing, so the following patch helped

--- a/src/main.cpp      2019-04-18 15:41:29.164777730 +0200
+++ b/src/main.cpp      2019-04-18 15:46:02.589397199 +0200
@@ -21,6 +21,8 @@

 #include <config.h>
 #include <spdlog/spdlog.h>
+#include "spdlog/sinks/stdout_color_sinks.h"
+#include "spdlog/sinks/rotating_file_sink.h"

 #include "bitz-server.h"
 #include "bitz/config.h"

Latest spdlog version against which it now compiles is 1.3.1
Compiled using gcc 8.2.0-r6
If you need any additional information, feel free to ask :)

Kind regards,
gr3m1in

Disable log4cpp support so we can compile on OpenWRT

Hi,

I'm working on a Makefile for OpenWRT as I would like to use bitz-server on some embedded hardware. Unfortunately OpenWRT disables log4cpp.

Is it possible to add a flag to disable log4cpp and just log to syslog or an external file?

By the way, I've already got the other dependencies compiling file ;)

How to configure squid server to operate with bitz-server properly.

Hi,

I'd like to configure bitz-server with squid proxy.
squid should have callback for response method like in the following example :

icap_service service_resp respmod_precache bypass=0 icap://192.168.50.1:1344/<method_name>

Anybody knows what to replace with the <method_name> ?

thanks

How to make ICAP Preview work

Hi,

I'm trying to set up an ICAP preview option, but the requests always go to modify() method and never hit preview().
Squid configuration contains

icap_preview_enable on
icap_preview_size 4096

and I've even tried to hardcode preview header to bitz-server's OPTIONS response, as RFC describes

   -- Preview:

      The number of bytes to be sent by the ICAP client during a
      preview.  This header MAY be included in the OPTIONS response.

      For example:
      Preview: 1024

using the following patch

--- a/src/bitz/options_request_handler.cpp      2019-04-24 15:12:20.809422286 +0200
+++ b/src/bitz/options_request_handler.cpp      2019-04-24 15:12:51.316184238 +0200
@@ -38,6 +38,7 @@
                header->attach( "Methods", _methods.at( 0 ) );
                header->attach( "Options-TTL", "3600" );
                header->attach( "Allow", "204" );
+               header->attach( "Preview", "4096" );

                response = new icap::Response( header );
                return response;

with no luck.

Am I doing something wrong or is there something else must be done to make preview working?

Thanks in advance.

Kind regards,
gr3m1in

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.