Giter Site home page Giter Site logo

findstr / silly Goto Github PK

View Code? Open in Web Editor NEW
68.0 9.0 14.0 2.52 MB

A lightweight server framework based on Lua

License: MIT License

Makefile 0.75% C 58.25% Lua 41.00%
lua socket epoll kevent http nonblocking-sockets coroutine-framework lua-debugger ipv6-support websocket alpn-support http2 tls-support distributed-tracing prometheus-client etcdv3

silly's Introduction

silly

license CI


Depend

  • sudo apt-get install libreadline-dev(Debian)
  • yum install readline-devel(Centos)

Build

  • make
  • make TLS=off (disable TLS function)

Run

./silly <config>

Config

  • daemon, 1 --> run as daemon, 0 --> normal
  • bootstrap, lua entry file
  • lualib_path, will append the package.path (in luaVM)
  • lualib_cpath, will append the package.cpath (int luaVM)
  • logpath, when running in daemon mode, all print message will write to [logpath]/silly-[pid].log file
  • pidfile, when running in daemon mode, pidfile will used by run only once on a system

Test

  • All test code are in test folder
  • Run ./silly test/test.conf to test all module

Examples

  • examples/start.sh timer/socket/rpc/http/websocket can run one example
  • examples/start.sh can run all examples

Wiki

https://github.com/findstr/silly/wiki

Benchmark

https://github.com/findstr/silly/wiki/Benchmark

silly's People

Contributors

findstr avatar

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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

silly's Issues

偶现server接收不到数据

测试环境:win10 linux子系统
使用sample里的sampled.lua和client.lua测试,偶现client可以连接上但是服务端报
[socket] checksocket sid:13 unsunpport type:0

关于lualib-profiler.c

1、该库对递归函数情况没处理也不兼容
2、看了项目代码,应该是没使用该库?

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.