gearman-go
gearman-go copied to clipboard
invalid magic
I'm running gearmand on windows.
When using example/py/worker.py, it works fine. But using example/worker/worker, it seems that gearman-go send invalid magic to server. Below is a log output of gearmand.
2015/03/05 19:19:42 util.go:218: [0;36m[debug] magic not match 0x32353533[0m
2015/03/05 19:19:42 session.go:59: [0;36m[debug] invalid magic sessionId 2 [0m
Since py/worker.py is working, I'm thinking this is problem of gearman-go.
Cause I don't have a windows environment to run a test-case, could you please show me your environment's details? And also it would be great if you can run test-cases in your env and send the result to me.
By the way, how about util.go & session.go, could you show me codes in those files? Because, no other people tell me the same problem occurred before, I've no idea about what reasons could trigger this issue.
This problem occured from 2014/1 on my environment (Windows7 32bit).
https://github.com/ngaut/gearmand/issues/7
I don't have any test code. I run client/worker.py in your repository
https://github.com/mikespook/gearman-go/tree/master/example/client https://github.com/mikespook/gearman-go/tree/master/example/py
Does the string "2553" have any special meaning in your application?
I read the source code of gearmand. It may a byte alignment problem. Have you tried the gearmand(C).
Unfortunately, I don't have 32bit linux OS, and gearmand(C) doesn't work on windows.
Does the string "2553" have any special meaning in your application?
Sorry, I don't write any code. I just run example.
I'm guessing this will occur on 32bit OS.
I built a 32bit testing environment in VBox:
Linux i386 3.2.0-4-486 #1 Debian 3.2.65-1+deb7u2 i686 GNU/Linux
However, both python client and golang client are worked fine.
