Blacksith

Results 7 comments of Blacksith

encountered same bug. > I am also seeing similar issues on ios. After being in background for a while, when coming back, it seems the proxy server has crashed or...

> @Blacksith , the latest progress is in my previous comment. That is, I have an idea of what is going on, but haven't taken a crack at it yet....

> Hmm, unfortunately neither of those point to the proxy. > > I am guessing that an `onError` and/or `onDone` handler should probably be added on on line 1924 to...

> I was supposing to add the `onError` and `onDone` handlers to the `_server.listen` call. ``` _server.listen((request) async { if (request.method == 'GET') { final uriPath = _requestKey(request.uri); final handler...

> I'm not at my computer right now but from memory the documentation for listen says that it takes these callbacks directly as parameters. can you help with that? Because...

``` _server = await HttpServer.bind(InternetAddress.loopbackIPv4, 0); _server.listen((request) async { if (request.method == 'GET') { final uriPath = _requestKey(request.uri); final handler = _handlerMap[uriPath]!; handler(request); } }, onError: (){ _running = false;...

I found a solution. I added on line 778 _proxy.start(); After that everything started to work. I don't claim this is the solution to the problem, but it worked for...