client side:
[raw@raw ~]# nc localhost 1234
login 5345735543 asdfg
200 0 OK Login successful
search knorkator
gateway output:
[raw@raw ~]# despotify-gateway localhost 1234
In waiting, spotify session state is 6
In waiting, spotify session state is 5
In waiting, spotify session state is 5
In waiting, spotify session state is 5
In waiting, spotify session state is 5
In waiting, spotify session state is 5
In waiting, spotify session state is 5
In waiting, spotify session state is 5
In waiting, spotify session state is 5
In waiting, spotify session state is 5
In waiting, spotify session state is 5
In waiting, spotify session state is 5
In waiting, spotify session state is 5
In waiting, spotify session state is 5
In waiting, spotify session state is 5
In waiting, spotify session state is 5
In waiting, spotify session state is 5
Dropping a dead (0 seconds old, max allowed=600) or failed Spotify connection (id e1f7dha71)
no search result is returned and i need to login again.
i have tried to debug it by adding some output to the code. The search result xml is recieved (sometimes a part of, sometimes full) but the client state goes CLIENT_STATE_ERROR_PACKET.
i would realy like to see it fixed, because the other functions i have used so far are still working on the client.
I can confirm that this is still an issue.
Patch that fixes search is available here:
http://vegar.beplacid.net/~vegar/files/gw_search.diff
apply with patch -p0 < gw_search.diff