[uWSGI] Very strange behavior with using unix socket

Roberto De Ioris roberto at unbit.it
Mon Nov 15 10:27:07 CET 2010


Il giorno 14/nov/2010, alle ore 09.02, test157 at smail.ee ha scritto:

> Hello Uwsgi,
> 
>  I slightly modified your async iobound example: http://projects.unbit.it/uwsgi/browser/tests/iobound_async.py
> 
>  and got in stuck, here you can see my version: http://pastebin.com/37y0qWEU
> 
>  instead of TCP/IP it's using UNIX SOCKET + I removed errno checking,
>  as UNIX socket doesn't have so ERROR codes. BUT, right now I can't
>  get it working, because if I will uncomment line 36 - my script will
>  FREEZE, if I will uncomment line 43 - I will get this error message
>  from uwsgi to console: epoll_ctl(): Bad file descriptor [async.c line 61]
> 
>  could you say where I'am wrong here?
> 
>  P.S.: as backend server (/tmp/test.sock) I have just socket server, what ECHO request to
>  client, so it will just return TEST in pickle format + data size as
>  first byte in binary (packed) format.
> 
> 
> _______________________________________________
> uWSGI mailing list
> uWSGI at lists.unbit.it
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi


I will add an example with unix socket soon

--
Roberto De Ioris
http://unbit.it



More information about the uWSGI mailing list