phpx/server: improve wire format
This commit updates the wire format of the phpx server. Instead of being string-based, messages sent back and forth between go and php are now base64-encoded DEFLATEd strings. This makes them a lot smaller and faster to send.
This commit is contained in:
parent
ffd9d2e695
commit
a9572e6613
4 changed files with 80 additions and 38 deletions
|
|
@ -6,6 +6,7 @@ import "fmt"
|
|||
const (
|
||||
errInit = "Server initialization failed"
|
||||
errClosed = "Server closed"
|
||||
errSend = "Failed to encode request"
|
||||
errReceive = "Failed to decode response"
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue