-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixing the case where sent == 0 (#320) #321
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me.
although As a side note, I am currently almost done implementing a new I/O manager for Windows, which will land within the next two GHC releases. This moves everything to IOCP, at that time I will need to submit The |
Is |
Yes, on the |
@Mistuke I pushed one commit. Would you review this PR again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the import of c_writev
on Windows breaks the build, looks like you don't need it anyway so removing it should do.
other than that the changes look good.
import qualified Data.ByteString as S | ||
import qualified Data.ByteString.Lazy as L | ||
import Data.Int (Int64) | ||
|
||
import Network.Socket (Socket(..)) | ||
import qualified Network.Socket.ByteString as Socket | ||
import Network.Socket.ByteString.Internal (c_writev, waitWhen0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c_writev
doesn't exists for Windows.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. And done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks.
Merged. Thanks! |
I think this change caused jaspervdj/websockets#180, I'll see if I can put together a small test case. |
This fixes #320.