Re: Mysql is gone away auth middleware channels 2

2018-04-05 Thread Matteo Lucchesi
Thank you very much Il giorno giovedì 5 aprile 2018 19:14:35 UTC+2, Andrew Godwin ha scritto: > > You must do all database access through a synchronous function wrapped in > database_sync_to_async - you can't just call it directly on an asyncio > thread: > >

Re: Mysql is gone away auth middleware channels 2

2018-04-05 Thread Andrew Godwin
You must do all database access through a synchronous function wrapped in database_sync_to_async - you can't just call it directly on an asyncio thread: http://channels.readthedocs.io/en/latest/topics/databases.html#database-sync-to-async Andrew On Thu, Apr 5, 2018 at 5:25 AM, Matteo Lucchesi

Re: Mysql is gone away auth middleware channels 2

2018-04-05 Thread Matteo Lucchesi
https://codeshare.io/5wlXNK Il giorno giovedì 5 aprile 2018 14:07:56 UTC+2, Matteo Lucchesi ha scritto: > > i've write a auth middleware for django channels : > > https://codeshare.io/aYnQmN > > but seem that use a persistent connection and after some hour i have the > erro "Mysql is gone away"

Mysql is gone away auth middleware channels 2

2018-04-05 Thread Matteo Lucchesi
i've write a auth middleware for django channels : https://codeshare.io/aYnQmN but seem that use a persistent connection and after some hour i have the erro "Mysql is gone away" Where is the error? -- You received this message because you are subscribed to the Google Groups "Django users"