Code Monkey home page Code Monkey logo

http-proxy's People

Contributors

gangzhuo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

http-proxy's Issues

make遇错

hi。

在mac上。
git clone https://github.com/GangZhuo/http-proxy http-proxy-by-GangZhuo
cd http-proxy-by-GangZhuo
git submodule init
git submodule update
make
it shows:
...
src/dnscache.h:30:28: error: unknown type name 'time_t'; did you mean 'size_t'?
void dnscache_check_expire(time_t now);
^~~~~~
size_t
/usr/include/sys/_types/_size_t.h:30:32: note: 'size_t' declared here
typedef __darwin_size_t size_t;
^
src/dnscache.c:228:6: error: conflicting types for 'dnscache_check_expire'
void dnscache_check_expire(time_t now)
^
src/dnscache.h:30:6: note: previous declaration is here
void dnscache_check_expire(time_t now);
^
2 errors generated.
make: *** [src/dnscache.o] Error 1
yudeMacBook-Air:http-proxy-by-GangZhuo brite$

怎么解决?

命令行运行 http-proxy, CTRL+C 结束,需要很长时间才释放监听端口

系统是:Linux Debian-N1 5.0.2-aml-s905 #5.77 2019 aarch64 GNU/Linux,用的最新源码编译。

命令行运行: http-proxy --config=/root/cfg/http-proxy.config -v --log-level=7,然后用 Ctrl+C 结束,再次运行,一直提示:

init_listen() error: bind() error: 0.0.0.0:55555 errno=98, Address already in use
init_listens() error

需要几十秒或者 1分来钟才能再次运行。

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.