Giter VIP home page Giter VIP logo

phpdaemon's People

Watchers

 avatar

phpdaemon's Issues

wrong settings initialization

1. open RTEP.php
2. go to line 11

if (!isset(Daemon::$settings[$k = 'mod'.$this->modname.'listen'])) 
{Daemon::$settings[$k] = 'tcp://0.0.0.0';}
  if (!isset(Daemon::$settings[$k = 'mod'.$this->modname.'listenport'])) 
{Daemon::$settings[$k] = 844;}
  if (!isset(Daemon::$settings[$k = 'mod'.$this->modname.'enable'])) 
{Daemon::$settings[$k] = 0;}

should be

if (!isset(Daemon::$settings[$k = 'mod'.$this->modname.'listen'])) 
{Daemon::$settings[$k = 'mod'.$this->modname.'listen'] = 'tcp://0.0.0.0';}
  if (!isset(Daemon::$settings[$k = 'mod'.$this->modname.'listenport'])) 
{Daemon::$settings[$k = 'mod'.$this->modname.'listen'] = 844;}
  if (!isset(Daemon::$settings[$k = 'mod'.$this->modname.'enable'])) 
{Daemon::$settings[$k = 'mod'.$this->modname.'listen'] = 0;}


Original issue reported on code.google.com by [email protected] on 16 Oct 2009 at 10:27

Проблема при запуске

ubuntu 9.10, php 5.3.1

root@minipc:/$ phpd start
[PHPD] HTTP up.
PHP Warning:  event_set(): supplied resource is not a valid stream resource in 
/phpDaemon/lib/asyncServer.class.php on line 27
[PHPD] AsyncServer::addSocket: Couldn't set event on binded socket: 
resource(26) of type (Socket)

Если ставлю Daemon::$useSockets = false в Daemon.class.php то 
всё 
запускается.

Original issue reported on code.google.com by [email protected] on 6 Dec 2009 at 1:54

unable to retrieve peer name

Перевел всё обратно на сокеты, запускается 
без ошибок.
Использую unix socket.
Во время работы приложения выдаёт 
следующее:

PHP Warning:  socket_getpeername(): unable to retrieve peer name [22]:
Invalid argument in
/local/rnsw/filepub/www/32/phpdaemon/lib/asyncServer.class.php on line 272
[PHPD] Connection is not allowed (:)

В коде это 

  if (Daemon::$useSockets)
  {
   $conn = @socket_accept($stream);
   if (!$conn) {return;}
   socket_set_nonblock($conn);
   socket_getpeername($conn,$host,$port);
   $addr = ($host === '')?'':$host.':'.$port;
  }

В мане пхп написано так:
socket_getpeername() should not be used with AF_UNIX sockets created with
socket_accept().

Original issue reported on code.google.com by [email protected] on 19 Dec 2009 at 10:56

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.