Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9fd788a7e959fe0785855002b111bbd606aeca1e7b85e320450c8a0ebd8b3665
Ticket: fc3c425cde46c6996c8543f701fcbeafd2b7ee5e
Use iocpsock as windows socket driver
User & Date: anonymous on 2018-11-05 12:38:04
Changes

  1. icomment:
    After the discussion on mailing list, i joining this request. It would be very nice to have Iocpsock implemented as windows socket driver in core.
    
    I working on multiplatform http upload application where speed is needed. And i was very confused, why on Linux i getting upload speed about 10-11Mbs (upper limit of my internet connection) and on windows only about 2-3Mbs.
    
    I received suggestion from Harald Oehlmann, that i should try Iocpsock package. So i tried and replaced core 'socket' command with 'socket2' command:
    
    package require Iocpsock
    package require http
    ....
    rename socket ""
    rename socket2 socket
    .... 
    
    And it helped!
    Now im getting the same speed, about 10-11Mbs as on linux.
    
    I can imagine, that poor performance of sockets under windows may frighten some users and they run away to other language (javascript, python, #C, or whetever is trendy today) And we dont want this, right? :)
    
    Pavel J.
    
  2. login: "anonymous"
  3. mimetype: "text/plain"