-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
See my fork here
https://github.com/glycerine/go-wolfssl
specifically at commit cd11bed (currently tip of master branch as of this writing).
Sometimes the server's reply of 65536 bytes fails on the first write. Other times it fails on the 2nd write.
To reproduce:
Run server:
jaten@rog ~/go/src/github.com/wolfssl/go-wolfssl/examples/server (master) $ rm httplike; go build httplike.go; ./httplike
Listening on localhost:11111
Client Succesfully Connected!
Client says : Can you hear me?^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^\
@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^\
@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^\
@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^\
@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^\
@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
Client Succesfully Connected!
Client says : Can you hear me?^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^\
@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^\
@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^\
@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^\
@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^\
@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
WolfSSL_write failed
jaten@rog ~/go/src/github.com/wolfssl/go-wolfssl/examples/server (master) $
In another terminal, run the client:
jaten@rog ~/go/src/github.com/wolfssl/go-wolfssl/examples/client (master) $ rm client; g\
o build client.go; ./client
# github.com/wolfssl/go-wolfssl
cgo-gcc-prolog: In function ‘_cgo_acb84add02d8_Cfunc_wolfSSL_Debugging_OFF’:
cgo-gcc-prolog:334:49: warning: unused variable ‘_cgo_a’ [-Wunused-variable]
Succesfully Connected!
Server reply was 5000000 bytes long
jaten@rog ~/go/src/github.com/wolfssl/go-wolfssl/examples/client (master) $ ./client
Succesfully Connected!
Server reply was 5000000 bytes long
jaten@rog ~/go/src/github.com/wolfssl/go-wolfssl/examples/client (master) $ ./client
Succesfully Connected!
Server reply was 5000000 bytes long
Metadata
Metadata
Assignees
Labels
No labels